Skip to content
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

Click on element behind top fixed menu #280

Open
fauger opened this issue Mar 1, 2018 · 1 comment
Open

Click on element behind top fixed menu #280

fauger opened this issue Mar 1, 2018 · 1 comment

Comments

@fauger
Copy link

fauger commented Mar 1, 2018

Reproduction case :

We have a top fixed menu (position: fixed; top: 0; left: 0; right: 0;)

  1. When i want to click on specific element outside the view screen (clickOnElement(Element $element) in Selenium2Driver.php)
  2. Selenium move to my element : $this->wdSession->moveto(array('element' => $element->getID()));
  3. Then this element goes to the top of the view screen behind my fixed menu.
  4. The click is catched by the menu and the following error is throwed :
    Element <details data-drupal-selector="edit-markets-fr" id="edit-markets-fr" class="js-form-wrapper form-wrapper collapse-processed"></details> is not clickable at point (480, 15.466659545898438). Other element would receive the click: <nav data-offset-top="" id="toolbar-bar" role="navigation" aria-label="Éléments de la barre d'outils" class="toolbar-bar clearfix"></nav>

Please, How can i fix it ?
Actually the only solution i see is hacking the function clickOnElement and adding the height of my menu.

Any helps greatly appreciated, thank you.

@aik099
Copy link
Member

aik099 commented Mar 1, 2018

No way really without breaking DriverInterface API that this and other drivers implement.

Maybe you can just hide the top menu before clicking on everything else?

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

No branches or pull requests

2 participants