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
Webdriver module missing moveToElement #2840
Comments
moveToElement is not a method of RemoteMouse, it is a method of WebDriverActions. The only method currently using WebDriverActions is dragAndDrop: https://github.com/Codeception/Codeception/blob/2.1/src/Codeception/Module/WebDriver.php#L2005 |
@javigomez I hope you can get it implemebted by following an advice of @Naktibalda Btw, In CodeceptJS we have |
Oh I missed that! thanks @Naktibalda for the advise 😅 Yes, @DavertMik I will try to implement today and I'll send news. |
Also we could create a function like this in codeception: https://github.com/gterre/stuff/blob/master/JavascriptUtils.java#L155-L174 adding it to the Click command. So when I do $I->click we always check if the element is clickable before clicking on it, otherwise we raise an error. |
#2882 should close this issue |
Long story short: since Selenium 2.48 there is a new addition causing a lot of trouble. Is the known error:
this happens when you have a floating element over the element that you want to click:
You can seen the whole issue described at: SeleniumHQ/selenium#1202
I have tried with this suggestion (SeleniumHQ/selenium#1202 (comment)):
Adding this in my acceptance.suite.yml:
But doesn't seem to do the trick.
I was now trying the advise at SeleniumHQ/selenium#1202 (comment). And is to use:
And I have noticed that despite that the Facebook Webdriver implements the function:
https://github.com/facebook/php-webdriver/blob/community/lib/Interactions/WebDriverActions.php#L170-L186
The Codeception Webdriver module does not implement it.
I was wondering how to implement it. It should be something like adding this:
at: https://github.com/Codeception/Codeception/blob/2.1/src/Codeception/Module/WebDriver.php
But I'm missing something, because I get:
FATAL ERROR. TESTS NOT FINISHED. Call to undefined method RemoteMouse::moveToElement()
Any advise on how to implement this?
Thanks ^_^
The text was updated successfully, but these errors were encountered: