mozilla / geckodriver

WebDriver for Firefox
https://firefox-source-docs.mozilla.org/testing/geckodriver/
Mozilla Public License 2.0
7.03k stars 1.51k forks source link

Hovering doesn't work when latent state is already "hover" #2173

Open luke-hill opened 2 months ago

luke-hill commented 2 months ago

Previous related issues

capybara: https://github.com/teamcapybara/capybara/issues/2156 geckodriver: https://github.com/mozilla/geckodriver/issues/1507

System

Testcase

(Cannot provide a minimal html file .... yet, this might not be possible as it's behind a login wall).

image

Stacktrace

N/A - No error is generated

Trace-level log

luke-hill commented 2 months ago

cc/ @whimboo

whimboo commented 2 months ago

Some questions...

  1. What is a pseud-hover state already set and for which element / node?
  2. What are you referring to with Submission v?
  3. Could you try if the problem also exists when you save the affected page to disk? If yes, you could remove as much as possible content from the HTML/CSS/JS to get a minimized testcase?

Without a proper example it is very hard to assume what this problem is about exactly. :/

luke-hill commented 2 months ago

1) If you look at the image it looks like there is a hover state already set. This is because the page is probably coded poorly. There however is no hover state, this is the page's default state 2) The dropdown link called Submissions with a arrow down next to it. 3) I'll try that now. That's a solid suggestion. I'll update more in a day or two if I make any progress.

luke-hill commented 2 months ago

@whimboo - I've managed to download the webpage. And delete approx 50% of it. I've got it down to around 200 lines of code but there's still a lot I need to comb through. I can reproduce the issue on the downloaded webpage. Once I have gotten the majority of sensitive items culled I'll upload a copy of it here or I can send it through on slack if easier

whimboo commented 2 months ago

That sounds great! And no worries if it takes a bit longer to remove all privacy related content. It's certainly still faster than trying to find such a test case out of the dark. Once you have the testcase maybe also include a small code snippet as well so that it's clear what needs to run. Thanks!

luke-hill commented 2 months ago

@whimboo - Ok here is what I have now (Sorry for delay)

HTML which is about 80 lines, it loads in the 2 css files locally. css / application css files (I haven't tried to clean these up).

3 items total is 1.7meg. I can zip this up and try put it on in a few days once I've had someone just give it a sanitize check.

Is this enough compression?

whimboo commented 2 months ago

Yes, that sounds fine. I can trim it down further if needed. Important is that it works as a stand-alone testcase. Thanks!