Forum Discussion

nb_autoTester's avatar
nb_autoTester
Occasional Contributor
9 years ago
Solved

Need a clever way to determine if an object is still visible on the screen

During my automation, I have a small popup that I have to select some radio buttons on and then an OK button that I need to click, but occasionally when I click it the click does not register, so I n...
  • Ravik's avatar
    9 years ago

    try multiple attributes and value in xpath like - Class/type, value, id, name etc., which is unique identifier for your object.

     

    Sample xpath for button - ("//input[@name='ok'][@type='button'][@id = 'sub1']")