Jump to content
Sign in to follow this  
HaithamSakr

Fill form with Send function

Recommended Posts

Hi,

I am tring to fill a form with the Send method, I am useing it because I am working on a program that use a different language rather than pouplar, so I could not reach the controls with unique identifer.

So I am doing something like that

Send("Name");
Send("{TAB}");
Send("Age");
Send("{TAB 4}");
Send("Address");

But some times it reads the Send("{TAB 4}"); correctly and proceed without problems and sometimes it ignores the Send("{TAB 4}"); and immediately fill the second textbox!

I mean the same code work sometimes and sometimes not!

 

Share this post


Link to post
Share on other sites

Try adding a sleep after Send("Age").   I would start with sleep(100) and adjust from there.  Also, take a look at this to identify the controls: '?do=embed' frameborder='0' data-embedContent>>

Edited by Jfish

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...