SeleniumHQ / selenium

A browser automation framework and ecosystem.
https://selenium.dev
Apache License 2.0
29.74k stars 8.02k forks source link

[🐛 Bug]: Use "GetScreenshot" method after expand combobox, it is collapsed. #14136

Closed CodyDeng614 closed 2 weeks ago

CodyDeng614 commented 2 weeks ago

What happened?

We want to perform these actions: expand a combobox by clicking it, then call "GetScreenshot". After that select a item. But it is collapsed.

We cannot use "Class Select" provided by selenium. UnitTest.zip

How can we reproduce the issue?

Have attached a demo project, you can run it. After run line 56, the issue can be reproduced.

Relevant log output

null

Operating System

Windows 11

Selenium version

C# 4.11.0

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

Chrome 125

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

125, see attachment

Are you using Selenium Grid?

no

github-actions[bot] commented 2 weeks ago

@CodyDeng614, 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!

diemol commented 2 weeks ago

We don't support old versions of Selenium. You will need to upgrade first and provide the code to reproduce the issue with the latest version.

CodyDeng614 commented 2 weeks ago

UnitTest.zip Have attached project with newest version webdriver.

titusfortner commented 2 weeks ago

This action is guided by the drivers, and since neither Chrome nor Firefox support it, I believe it is working as intended, but you can raise an issue with them and see what they say.

Also, Net Framework 4.5 is no longer supported now that we target net standard 2.

Select class should still work to get the list of options since it is select/options classes

github-actions[bot] commented 2 weeks ago

Hi, @CodyDeng614. This issue has been determined to require fixes in ChromeDriver.

You can see if the feature is passing in the Web Platform Tests.

If it is something new, please create an issue with the ChromeDriver team. Feel free to comment the issues that you raise back in this issue. Thank you.