Click invisible element
See original GitHub issueApologies, another one, we don’t seem to be able to click an ‘invisible item’… The item becomes visible via mouseover but is clickable when hidden nevertheless (verified).
We tried a couple of settings with the force option but without succes.
ClickAsync("#button1", 0, MouseButton.Left, 1, null, null, null, true, null);
What are we doing wrong?
Thanks, -M
Issue Analytics
- State:
- Created 3 years ago
- Comments:15 (8 by maintainers)
Top Results From Across the Web
How to click on hidden element in Selenium WebDriver?
First store that element in object, let's say element and then write following code to click on that hidden element:
Read more >How do you click on an element which is hidden using ...
Mostly the hidden elements are defined by the CSS property style="display:none;". In case an element is a part of the form tag, it...
Read more >How To Find Hidden Elements In Selenium WebDriver ...
Examples of hidden elements in the DOM · Check if the 'Click Me!' button is displayed. · Click on the 'Click Me!' button,...
Read more >How to Click Invisible Element - Studio
In the event it is invisible, but only present when you hover to the top-right, you can leverage the Hover Activity, then Click...
Read more >[Question] How to click hidden elements? · Issue #12267
await page.locator('#foobar:visible').click(). That will do nothing, because :visible selector finds only visible elements and hidden one ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@kababoom I was able to solve this using mouse emulation. What do you think?
@kababoom the idea of the
ClickAsync
function is to emulate a user action. If the element is not visible there’s no chance of a user action.ClickAsync
is not a map of theclick
function in javascript. If you want to use theclick
function you can useEvalOnSelectorAsync
.