Forum Discussion
sowmya_bs
15 years agoContributor
This code worked fine when the 'btnOK' was found on the page. It did not log any error message in the log file.
But when the 'btnOK' is existing it fails to identify it and the script fails there.
I have the 'btnOK' in the namemapping.
Here is the below code
If (DialogBoxObject.btnOK.Exists) Then
(this above line is replaced with - If (DialogBoxObject.WaitNamedChild("btnOK", 10000).Exists) Then
DialogBoxObject.btnOK.Click()
Else
DialogBoxObject.btnYes.Click()
End If
but this new line makes the script wait for btnOK, it does not find it even the object exists.
Where am i going wrong?
But when the 'btnOK' is existing it fails to identify it and the script fails there.
I have the 'btnOK' in the namemapping.
Here is the below code
If (DialogBoxObject.btnOK.Exists) Then
(this above line is replaced with - If (DialogBoxObject.WaitNamedChild("btnOK", 10000).Exists) Then
DialogBoxObject.btnOK.Click()
Else
DialogBoxObject.btnYes.Click()
End If
but this new line makes the script wait for btnOK, it does not find it even the object exists.
Where am i going wrong?
Related Content
Recent Discussions
- 16 hours ago
- 16 hours ago
- 4 days ago