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

Actions.moveToElement causes driver to fail when given a WebElementFacade #24

Open
dcleao opened this issue Nov 4, 2020 · 0 comments
Open

Comments

@dcleao
Copy link

dcleao commented Nov 4, 2020

When using Serenity with a chrome driver (version 86), the following code:

import org.openqa.selenium.interactions.Actions;
// ...
new Actions(driver).moveToElement(webElementFacade).build().perform()

causes the following error to be thrown:

invalid argument from invalid argument: 'origin' must be either a string or a dictionary

I solved it, by passing the underlying web element instead: webElementFacade.getElement():

new Actions(driver).moveToElement(webElementFacade).build().perform()

I suppose that the WebElementFacade (the origin) does not work well with the W3C encoder.

An issue which looks similar exists on Stack Overflow: https://stackoverflow.com/questions/64033836/what-should-be-implemented-by-webelementproxy-in-order-to-pass-it-to-actions-mov/64688961#64688961.

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

1 participant