Button not able to click randomly

Question ID: 106843
1
0

Script is clicking button ‘Next’ sometimes and sometimes not. This is my code:

Browser("Browser").Page("EMA").WebButton("Next >").Highlight
Browser("Browser").Page("EMA").WebButton("Next >").FireEvent("onmouseover")
Click_Object Browser("Browser").Page("EMA").WebButton("Next >").Click

Marked as spam
Posted by (Questions: 385, Answers: 52)
Asked on April 29, 2016 4:01 pm
7 views
Answers (1)
1
Private answer

Try adding a Wait command with enough seconds to slow the script down right before the click (It might be playing back faster than the GUI can keep up with).

Browser(''Browser'').Page(''EMA'').WebButton(''Next >'').Highlight
Browser(''Browser'').Page(''EMA'').WebButton(''Next >'').FireEvent(''onmouseover'')
Wait 4
Click_Object Browser(''Browser'').Page(''EMA'').WebButton(''Next >'').Click

In the above example, we've added a 4-second Wait.

Marked as spam
Posted by (Questions: 0, Answers: 733)
Answered on April 29, 2016 4:02 pm
Works now.
( at April 29, 2016 4:03 pm)