SeleniumHQ / selenium-ide

Open Source record and playback test automation for the web.
https://selenium.dev/selenium-ide/
Apache License 2.0
2.82k stars 768 forks source link

Recording stuck when click a dropdown arrow on excel online site #879

Open melode11 opened 5 years ago

melode11 commented 5 years ago

🐛 Bug Report

Recording stuck when click on a dropdown arrow a excel online site. I hit some other website as well, excel online workbook is one example.

To Reproduce

Steps to reproduce the behavior:

  1. Launch selenium IDE record on Excel online site: https://www.office.com/launch/excel?ui=en-US&rs=US&auth=2
  2. Sign in -> click 'New blank workbook' -> click Data tab -> click the dropdown arrow beside 'Refresh All' button(Make sure the 'Simplified Ribbon' switch is on)

The recording is stuck and the whole page lost response to any user operations.

Expected behavior

The page not stuck.

Project file reproducing this issue (highly encouraged)

No side file because it is recording time issue.

Environment

OS: Windows 10 Selenium IDE Version: 3.0.14

Browser: Chrome Browser Version: 78.0.3904.97

corevo commented 4 years ago

My assumption is that it's due to the css locators entering an infinite loop, or the xpath trying to calculate text nodes.

A PR that would allow to re-order and disable locator strategies would be welcome.

JohnReddyZhang commented 4 years ago

We am currently running into the same issue. It seems that the css:finder option is causing the problem. I disabled this builder https://github.com/SeleniumHQ/selenium-ide/blob/master/packages/side-recorder/src/content/locator-builders.js#L304 and am not stuck anymore. Not sure if that will solve your problem or not.

JisungHan-MS commented 4 years ago

Would you please update whether this issue was resolved? or are there any ETA or plan to fix this issue? The page freezing issue still happening with a dropdown arrow not only excel online but also google report page and so on.