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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[馃悰 Bug]: MoveToElement - RemoteWebDriver threw an exception of type 'System.InvalidOperationException' #10344

Closed
mariankral opened this issue Feb 9, 2022 · 9 comments

Comments

@mariankral
Copy link

What happened?

Hi,
I'm using code below for move to element, but actionExecutor returns an exception.
Chromedriver version: 98.0.4758.48 win32
Can you help me, please?
actionExecutor_exception

How can we reproduce the issue?

IWebElement element = driver.FindElement(By.LinkText(link_text));
Actions ac = new Actions(driver);
ac.MoveToElement(element);
ac.Build().Perform();


### Relevant log output

```shell
ac > actionExecutor

ApplicationCache = '((OpenQA.Selenium.Remote.RemoteWebDriver)ac.actionExecutor).ApplicationCache' threw an exception of type 'System.InvalidOperationException'
LocationContext = '((OpenQA.Selenium.Remote.RemoteWebDriver)ac.actionExecutor).LocationContext' threw an exception of type 'System.InvalidOperationException'

Operating System

Windows 10

Selenium version

3.14

What are the browser(s) and version(s) where you see this issue?

Chrome 98.0.4758.82

What are the browser driver(s) and version(s) where you see this issue?

ChromeDriver 98.0.4758.48

Are you using Selenium Grid?

No

@github-actions
Copy link

github-actions bot commented Feb 9, 2022

@mariankral, thank you for creating this issue. We will troubleshoot it as soon as we can.


Info for maintainers

Triage this issue by using labels.

If information is missing, add a helpful comment and then I-issue-template label.

If the issue is a question, add the I-question label.

If the issue is valid but there is no time to troubleshoot it, consider adding the help wanted label.

If the issue requires changes or fixes from an external project (e.g., ChromeDriver, GeckoDriver, W3C), add the applicable G-* label, and it will provide the correct link and auto-close the issue.

After troubleshooting the issue, please add the R-awaiting answer label.

Thank you!

@titusfortner
Copy link
Member

First, please update to Selenium 4.1 so we can evaluate with latest code.
Second, is this actually halting your test, or is it just recording an error that was rescued in the code?

If it's an error, please copy and paste the full stack trace.

@mariankral
Copy link
Author

I caught this exception during debugging.

@titusfortner
Copy link
Member

Right, what happens when you run with latest version of Selenium without catching the exception.

@mariankral
Copy link
Author

Works with version 4.1
Thank you for advice, Titus.

@mariankral
Copy link
Author

mariankral commented Feb 24, 2022

Hi @titusfortner

bad news, the same problem is back.
((OpenQA.Selenium.WebDriver)ac.ActionExecutor).ApplicationCache = '((OpenQA.Selenium.WebDriver)ac.ActionExecutor).ApplicationCache' threw an exception of type 'System.InvalidOperationException'

I'm using the latest version, all is updated.
Selenium version: 4.1
"browserName": "chrome",
"browserVersion": "98.0.4758.102",
"chromedriverVersion": "98.0.4758.102"

Can you help me, please?

@titusfortner
Copy link
Member

Ah, sorry, wasn't even paying attention to the method. This is not a valid endpoint for w3c, and is no longer supported by Chrome.

@titusfortner
Copy link
Member

titusfortner commented Mar 7, 2022

@mariankral wrt #10397 (comment)

Are you just getting log outputs with the word "error" in them, or are you getting errors when trying to do something with Selenium?

@github-actions
Copy link

github-actions bot commented Apr 7, 2022

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked and limited conversation to collaborators Apr 7, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants