All Questions
Tagged with selenium-chromedriverjavascript
531 questions
1vote
0answers
36views
executing javascript function with chromedriver and c#
I have a button that I need to click to open up file explorer and select a file. The entire page is JavaScript functions and there is no button id or name that comes up in the html I tried: myField = ...
5votes
0answers
2kviews
Is there a way to use MutationObserver JavaScript API in selenium
I want to use MutationObserver on selenium to observe change of the element. But following error have occurred in observe(): Uncaught TypeError: Failed to execute 'observe' on 'MutationObserver': ...
0votes
0answers
351views
Is there has a max duration parameter in selenium?
I have an automation case that run on chrome and will run over 3hours, i use selenium run case and use chromedriver provide browser node, on macos, it can run for three hours and end normally, but on ...
641votes
26answers
506kviews
Can a website detect when you are using Selenium with chromedriver?
I've been testing out Selenium with Chromedriver and I noticed that some pages can detect that you're using Selenium even though there's no automation at all. Even when I'm just browsing manually just ...
0votes
1answer
11kviews
Getting Node Module Error (Cannot find module)
I am learning the Automated tests by using selenium web driver + Javascript and node.js. Everything is working fine when I ran that script.js from the Visual Studio code terminal(by using node main.js)...
1vote
1answer
9kviews
How to wait for page to load completely using JavaScript in Selenium
I'm trying get for page to load completely before doing an action. I don't want to start an action while loading circle on the browser tab is still turning. My wait for ajax function is not working ...
2votes
2answers
10kviews
click() not clicking button in selenium headless mode
I have selenium test running in a remote server in headless mode using chrome driver. Following step tries to click on a button but the button doesn't get clicked. Below test step tries to click the ...
1vote
0answers
139views
Selenium 4 (Node.js): How to Capture Network Requests? (getDevTools, createCDPConnection)
Selenium 4 (Node.js) - TypeError: driver.manage(...).getDevTools is not a function I'm trying to capture network requests and responses in Selenium 4 using Node.js and Chrome. I'm encountering the ...
1vote
2answers
775views
How perform drag zoom with puppeteer for emulated devices
Has anyone managed to simulate a drag zoom interaction with puppeteer when the page is in emulated device mode. To do this as a user, you hold down the SHIFT key while dragging the mouse. ...
5votes
1answer
472views
How to get console.trace() result from Chrome webdriver with selenium?
I'm working on some research issue which requires me to acquire the exact stack trace when certain JavaScript alters DOM tree. I managed to achieve satisfactory result using MutationObserver ...
0votes
1answer
44views
Chrome controlled by Chromedriver silenced alert popup
I used the following html to test an alert pop up. If a user fills the form, but then switches URL, instead of submitting the form, the page will pop up an alert <!DOCTYPE html> <html> &...
0votes
1answer
114views
Button click not working in seleniumheadless mode as expected
I am using selenium script to test login flow. After entering username, I need to click next button and it should redirect me to Identity provider page. If I don't run my selenium script in headless ...
4votes
5answers
12kviews
How to remove "chrome is being controlled by automated test software" selenium javascript
Is there anyway to remove the "chrome is being controlled by automated test software" notification in selenium JavaScript. Already tried disable info-bar but turns out chrome patched that ...
1vote
3answers
2kviews
Found one strange behavior in webdriver io, .equals method is not working but ' === ' is working in assertion
Hello I am new to webdriverio automation, and while practice webdriverio, I found one strange behavior. This is my test code const internetPage = require("../pages/InternetPage"); //...
0votes
0answers
26views
NoSuchElementError: no such element: Unable to locate element: {"method":"xpath","selector":"//select[@id='InputPrefix']"}
when i created seperate stepdefinition classes like Given, When,Then the automation script usin findElement etc.. is not reading in when and then step.js but its reading in given.js file what mistake ...