admc / wd

A node.js client for webdriver/selenium 2.
Other
1.53k stars 402 forks source link

Click on link (except the first one) which opens a new tab executed 5+ seconds #550

Closed DudaGod closed 5 years ago

DudaGod commented 5 years ago

Environment

wd version: 1.6.2 Node.js version: 8.4.0 Selenium Version: 3.12.0 OS: Linux/Mac os Browser: Chrome Browser Version: 67.0.3396.62 and 70.0.3535.0

Detailed information

Hello guys. I ran into a problem when running my test in chrome. In the test I clicked links one after another which opens a new tab. And the strange thing that each subsequent click (except first) is performed 5+ seconds.

My test code - https://pastebin.com/5343vN1n Log from my console:

Execution time (hr): 0s 319.789946ms
Execution time (hr): 5s 359.835009ms
Execution time (hr): 5s 485.34436ms

Log from selenium - https://pastebin.com/ADBGxiMf And a piece from the selenium log with a pause of 5 seconds looks like:

2018-08-28T19:59:37.529239562Z [1535486377.529][DEBUG]: DEVTOOLS COMMAND Input.dispatchMouseEvent (id=44) {
2018-08-28T19:59:37.529242893Z    "button": "none",
2018-08-28T19:59:37.529246186Z    "clickCount": 0,
2018-08-28T19:59:37.529249297Z    "modifiers": 0,
2018-08-28T19:59:37.529252384Z    "type": "mouseMoved",
2018-08-28T19:59:37.529255583Z    "x": 210,
2018-08-28T19:59:37.529258862Z    "y": 488
2018-08-28T19:59:37.529261953Z }
2018-08-28T19:59:42.532249806Z [1535486382.532][DEBUG]: DEVTOOLS RESPONSE Input.dispatchMouseEvent (id=44) {
2018-08-28T19:59:42.532291647Z 
2018-08-28T19:59:42.532295899Z }

Video of test execution - https://youtu.be/SWP5NI3SANo

DudaGod commented 5 years ago

I reported this issue to chromedriver project - https://bugs.chromium.org/p/chromedriver/issues/detail?id=2564