Skip to content

Conversation

@gopejavi
Copy link

@gopejavi gopejavi commented Dec 9, 2017

Google's search has a drop-down that is automatically triggered when searching, with suggestions.
That drop-down hides the 'btnG' button so the test outputs an error saying that the element is not visible.

I tried to select the first Google's suggested element, but the suggestion is all lowercase, so the "seeInTitle" fails (unless is also changed...).
I also tried to use the same selector (element's name q) instead of the id #lst-ib for clarity but it doesn't work.

If you want to keep the click function for demonstrative purposes, a solution is to press the ESCAPE key in order to close the drop-down and then click on btnG.

@jjrohrer
Copy link

jjrohrer commented Nov 18, 2019

I had to do some like this:
$I->pressKey('input[name="q"]', WebDriverKeys::ENTER);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants