SeleniumHQ / selenium-ide

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

Page Unresponsive message in chrome while recording testcase when clicking menu link #1273

Open mmraghav opened 2 years ago

mmraghav commented 2 years ago

🐛 Bug Report

Seeing Page Unresponsive message in chrome browser when we click on a menu during test case recording. If we write the commands in IDE manually instead of recording, Menu click works perfectly fine.

Clicking on menu works perfectly fine when we open the browser and try to click outside of IDE.

Environment

OS: MacOS Selenium IDE Version: 3.17.0

Browser: Browser Version: chrome 94.0.4606.61

image

toddtarsi commented 2 years ago

@mmraghav - Could you provide more detail here? I am unsure what you mean exactly by "Menu". Can you help provide a screenshot or two or something? Is this still occurring?

aliwasif177 commented 2 years ago

yes it is still hapening. For normal web it's working fine. BUT , When I run recoring on dom extensive web it makes the page unresponsive. it shows lots of voilation warnings like mouse hover took 289ms and souce map not found 404.

image

meanwhile katalon is tackling it very preciesly using xpath. But in selenium we are using css or id . But in my case this unresponsiveness occurs when we have and <a tag in dom with scipt in it (with id attribute )

Screen Shot 2021-12-14 at 3 07 50 AM
toddtarsi commented 2 years ago

@aliwasif177 - Interesting, thank you for the further details.

I believe you can use xpath from selenium-ide, if that will resolve your issue.

For the source map issues, that wouldn't impact performance. It's just that there aren't source maps for those assets.

I can be kind of dim witted, so I just want to repeat this back. If you have a (I'm assuming very big) script with an id on it, and you query that script using css or id, it crashes the browser on Selenium IDE. However, if you use Katalon, it works okay?

aliwasif177 commented 2 years ago

Yes with katalon its working fine even though katalon is built on selenium. And yes surely I can get xpath with selenium ide.But for that sqa has to manually get the xpath for that node!

aliwasif177 commented 2 years ago

Anyway thanks alot for your reply @toddtarsi

Ishika-200 commented 3 months ago

I am also facing the same issue but can't find any solution. Have you found a solution yet? @aliwasif177

toddtarsi commented 3 months ago

@Ishika-200 @aliwasif177 - Do either of you use v4? Do things seem better there?