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

[🐛 Bug]: VNC clicks not registered in Chromium-based drivers on some webpages in specific scenario #2392

Open
vaclavnovotny opened this issue Sep 11, 2024 · 1 comment

Comments

@vaclavnovotny
Copy link

vaclavnovotny commented Sep 11, 2024

What happened?

Hello!

I have a use case where I need to use the VNC of a running Selenium session to execute clicks at absolute positions in the stream. Most of the time, everything works fine. However, I encountered a specific scenario when clicking on an item in a menu that appears after hovering over it with the mouse. When the button in such a menu is clicked, nothing happens, as if the website doesn't register the click. On one page, the click registered below the menu.

Please note that this issue is not consistent—on some pages, it works, and on others, it doesn't.

Clicking in hovered menus does not work with the Chrome and Edge drivers. Interestingly, it works fine when using the Firefox driver. Therefore I suspect some issue in the chromium-based driver.

Moreover, on these problematic pages, it doesn't work even when using the NoVNC client.

Here are a few pages where this problem occurs:

https://ysoft.com/
https://printerpssw.com/
https://konicaminolta.com.au/

I understand this is a non-standard use case, but I would greatly appreciate any help, as I am at a dead end.

Thank you in advance!

How to reproduce:

I used NuGet package
<PackageReference Include="Selenium.Support" Version="4.24.0" />

And then created .NET 8 console application to just create selenium session:

using OpenQA.Selenium.Chrome;
using OpenQA.Selenium.Remote;

var options = new ChromeOptions();
options.AddArgument("--start-fullscreen");
var driver = new RemoteWebDriver(new Uri("http://localhost:4444/wd/hub", UriKind.Absolute), options);
    
// Navigate to a website where the actual issue is
driver.Navigate().GoToUrl("https://www.ysoft.com");
    
// Break here and go to the session http://localhost:4444/ui/#/sessions
driver.Quit();

To reproduce the issue, simply navigate to the page, open the navigation menu, hover over a menu item, and click on a link in the displayed menu.

Command used to start Selenium Grid with Docker (or Kubernetes)

docker run -d -p 4444:4444 -p 7900:7900 --env VNC_NO_PASSWORD=1 --shm-size="2g" selenium/standalone-chrome:4.24.0-20240907

Relevant log output

No relevant errors in logs

Operating System

Docker Desktop Ubuntu 22.04.1, also happens in Kubernetes running on linux

Docker Selenium version (image tag)

4.24.0-20240907

Selenium Grid chart version (chart version)

No response

Copy link

@vaclavnovotny, 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, MSEdgeDriver, 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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant