We are testing Webdriver.IO (https://webdriver.io/) with TypeScript to test if it could be a good framework for automating End-to-End GUI-tests on a Web-application. We have already tried Cypress and TestProject.IO, both of which have test-script recorders either natively built or with plugins or both. I couldn’t find a way to record end-to-end tests with Webdriver.IO – meaning I want to
Tag: selenium-webdriver
Button is getting enable only After entering text from keyword
I am facing one issue while doing automation where the button is getting enable only after entering text in the field I need to click on CREATE Button after entering some text in the app name field. I have written code using JavaScript and it is entering value also but Button is not getting enable. The button is only getting
How to wait all ajax requests finished except “jQuery.active ==0”?
In fact, I’am working in webdriver, I want to make it to wait ajax finished. following is the code I got from searched websites: we could see that the key code is “jQuery.active”, this may got the running ajax request count, but it now works for me, and my websites did not use jQuery but other js library. is there
What is the error OpenQA.Selenium.WebDriverException : javascript error: document.getElementByName is not a function
I got a error in executing the below line of code I got the error At line 3 document.getElementByName is not a function (Session info: chrome=87.0.4280.141) what is the reason for it? Answer The JavaScript method is document.getElementsByName(…) (plural – Elements not Element). This method returns a collection of elements, not a single element. Be sure to access the [0]
How to enable the download window prompt for javascript-based Selenium-webdriver?
I am using ‘selenium-webdriver’ npm package to simulate an endpoint user – I click on buttons, select drop-downs and checkboxes. I come across an image that will help me download a PDF file. So what I want and what happens when I manually click on this image button on a regular chrome tab is that it will prompt a save-window:
Unable to sign into google with selenium automation because of “This browser or app may not be secure.”
I am trying to login to google with selenium and I keep getting the error that “This browser or app may not be secure.” The function I use to log in is: It is the same problem as https://stackoverflow.com/questions/59433453/unable-to-log-into-google-account-in-selenium-chrome-driver and https://stackoverflow.com/questions/59276975/couldnt-sign-you-in-this-browser-or-app-may-be-insecure-python-selenium-chrome I have tried using both the chrome and firefox web drivers and both don’t work. I have also tried
How to change selenium-standalone port number via webdriverio wdio file?
I need to change the port number of which selenium standalone server is using by default (4444). Port 4444 is currently in use, is there a way to alter the port number via the wdio file? Currently I’m starting selenium server via the following command: I have also attempting to use the following with no luck: Running the above command
Inconsistent results from elementLocated vs findElements
I am writing Webdriver automation for a web app. I have a test that looks like this: it(‘has five items’, async function(done) { try { await driver.wait(until.elementLocated(By.className(‘item-…
Scrolling to top of the page in Python using Selenium
I’m having issues with scrolling to the top of the web page when using Python and Selenium. When the page loads for some reason you are taken to the bottom of the page (this is due to be fixed). However, when I’m trying to scroll to the top it does not work. I tried the following: And I have also
Selenium: Scroll till end of the page
Selenium: I am new to WebDriverJS. I have tried this approach in Java. but I am facing problem in webdriverjs while iterating the loop. In my code I have hardcoded for loop to iterate until 50 times and I want to quit/break the loop when the scroll height is reached to end. In this approach, I want to remove hardcode