Thursday, 8 August 2013

How to click visible element in PHPUnit Selenium2TestCase?

How to click visible element in PHPUnit Selenium2TestCase?

I have 2 buttons with the same name. For design reasons only one of them
is visible at the same time.
I want to click on any visible button.
If first button is hided this expression
$this->byCssSelector('[name="saveAndClose"]')->click()
returns
Element is not currently visible and so may not be interacted with
How to click on visible button?

No comments:

Post a Comment