Solved
Forum Discussion
Manfred_F
Regular Contributor
the "visible" property should help, it did it for me at least.
First, check "exists". Then check "visible", but: be careful: while checking "visible", the object may stop its existence and You get an error, so use error handling here.
nb_autoTester
9 years agoOccasional Contributor
Manfred_F I checked every property of the button before the popup is displayed and after the button is displayed. Every single property is the same, there are no differences. What I did was create a button1 and Set that before the popup is displayed, and a button2 and set that after the popup is displayed. Each object had the exact same properties.
Ravik Thanks for the suggestion, it worked! After I click the button once, I try to get the button again:
Set btn_Detail_Ok = page.FindChildByXPath("//*[@id='levelOfDetailDialog_ACTION_1'][@name='Ok'][@tabindex='2002']", True)
Then, if btn_Detail_Ok is still there, click it again.
'If the Ok button still exists, click it again If Not btn_Detail_Ok Is Nothing Then btn_Detail_Ok.Click Log.Message("Clicked Ok button again") End If
Related Content
- 12 years agokirk_bottomley
Recent Discussions
- 2 hours agoSubhraDas
- 20 hours agotramuntana