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: 424, Answers: 91)
Asked on April 29, 2016 4:01 pm
34 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: 771)
Answered on April 29, 2016 4:02 pm
0
Works now.
( at April 29, 2016 4:03 pm)
EyeOnTesting

Welcome back to "EyeOnTesting" brought to you by Orasi Software, Inc.

X
Scroll to Top