Skip to content

Fixed Google Single test #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

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.

None yet

2 participants