Countleonardo

AutoIt Skips doesn't write entire string

9 posts in this topic

#1 ·  Posted

I'm having an issue with AutoIt, it is not writing the entire String.

For example I have a string "HappyUser@company.com" .  It would write "Happ" then skips and writes "yUser@company.com" in the next field. 

AutoIt sometimes in other cases doesn't click on buttons.  

Is there a reason for it skipping? Is there something to do to increase stability?

 

Thanks in advance!!!

Share this post


Link to post
Share on other sites



#2 ·  Posted

Welcome to AutoIt and the forum!

It's hard to tell what goes wrong without seeing your code.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

#3 ·  Posted

I understand.

The code is running with Selenium Automation,  It is just similar to this with timeouts.

 

ControlFocus("menu","","name1")
ControlClick("menu","","name1")
ControlSetText("menu","","name","Intelli")

Share this post


Link to post
Share on other sites

#4 ·  Posted

2 minutes ago, Countleonardo said:

I understand.

The code is running with Selenium Automation,  It is just similar to this with timeouts.

 

ControlFocus("menu","","name1")
ControlClick("menu","","name1")
ControlSetText("menu","","name","Intelli")

 

here is java version

autoit().sleep(Time);

autoit().controlfocus(Window.title.get());

autiit().ControlSetText(Window.title.get(),"", Window.Email.get(), email);

Share this post


Link to post
Share on other sites

#5 ·  Posted

Never worked with Selenium. Hopefully some more knowledagble users will chime in.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

#6 ·  Posted

16 minutes ago, water said:

Never worked with Selenium. Hopefully some more knowledagble users will chime in.

 

Thanks!

Share this post


Link to post
Share on other sites

#7 ·  Posted

It might be that you are switching to the next input too quickly, so the send command doesn't have enough time to put the entire string in. Can you try adding a sleep after your write command and see if it helps?


UHJvZmVzc2lvbmFsIENvbXB1dGVyZXI=

Share this post


Link to post
Share on other sites

#8 ·  Posted

16 hours ago, anthonyjr2 said:

It might be that you are switching to the next input too quickly, so the send command doesn't have enough time to put the entire string in. Can you try adding a sleep after your write command and see if it helps?

I do have a sleep between the commands, I even increased it to 5 seconds. It is very weird how it is jumping around. Thanks for the suggestion!

Share this post


Link to post
Share on other sites

#9 ·  Posted

Can you post more of your code? Even if it's just your java code it might help us more.


UHJvZmVzc2lvbmFsIENvbXB1dGVyZXI=

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