Category "selenium-webdriver"

Selenium - Wait until element has a new value

Say I have an element with value = 1. Then I click on some button, it takes a while to load and then the element value updates, say value = 2. Now, what I want

Why do we need to typecast the WebDriver instance to JavascriptExecutor before calling the executeScript method?

JavascriptExecutor is an interface which provides some default code for executeScript method. RemoteWebDriver implements this interface and overrides the method

FileNotFoundError: [Errno 2] No such file or directory: Discrepancy between programs

at the moment I'm writing several tests with Selenium and I use Python. For rudimentary logging i made this function in order to output all prints to a file: #

Log into gmail using Selenium in Python

I am trying to log into gmail using Selenium. In the new gmail log in, first you type your email id and then a next page comes where you type your password. URL

java.lang.NoSuchMethodError: 'com.google.common.collect.ImmutableMap error when trying to execute tests using Chromedriver and Maven

I am new to selenium tests and I am currently watching some youtube videos using maven. Today I tried a few codes and worked fine but when accessing one store p

How can I handle Geo Location popup in mozilla and chrome browser using selenium webdriver?

Please, see the following screenshot: How can I handle Geo Location popup in mozilla and chrome browser using selenium webdriver? package tiyotesting;

Selenium - Why is some windows closing by itself while program not finished?

When I run the test.py file, windows open as many times as I want, it can log in and execute the necessary commands. But every time, random tabs closing by them

How to install GTK3 and Firefox on Amazon Linux (EC2) instance?

I'm trying to install the firefox on amazon linux (ec2) instance.. but this seems very difficult as gtk3 cannot be installed directly via yum. I've seen some a

How to Capture Full page screenshot of using selenium WebDriver

I have created a Selenium Full page screenshot test for Responsive tests using selenium. But if I am going to run against the SharePoint Site then it's not taki

unknown error: session deleted because of page crash from unknown error: cannot determine loading status from tab crashed with ChromeDriver Selenium

I'm using InstaPy which use Python and Selenium. I start the script per Cron and from time to time it crashes. So it'r really irregular, sometimes it runs well

How to wait for login cookie in C# Selenium WebDriver?

Im only been working with Java before but need to set up some tests in C#. In a login test I like to have a wait method waiting for the login cookie to be set.

Selenium ignore if element not present

I have the below code for my selenium, where I need to click on carousel icons and get all the images one by one, but sometimes that carousel doesn't have more

selenium modify html read only input element with python?

Im trying to use selenium to clear a text field from a 'read only' input field. This part of the code, although i don't get errors, it doesn't work: from seleni

unknown error: DevToolsActivePort file doesn't exist when running in Docker

I am trying to run chrome using Python and selenium in a Docker container running alpine. It was running fine until one day when it started throwing the followi

Selenium and Python - Bot for Instagram Login

I'm trying to create a bot to access instagram, but I don't understand why it's giving an error, here's the code: from time import sleep from selenium import w

org.openqa.selenium.WebDriverException: disconnected: Unable to receive message from renderer

I am testing one application in which my requirement is as below: Login and create a webform through my application under test. It will generate one webform UR

ConnectionAbortedError: [WinError 10053] An established connection was aborted by the software in your host machine

For some reason I get the following error only when I open up a nested webdriver instance. No idea what is happening here. I am using Windows 10, geckodriver 0

Finding element with class name with spaces not working (selenium)

I'm trying to find this element inside a log-in page when a user inputs the wrong password <div class="form-input-validation is-error" role="alert"><

Selenium Webdriver Node.js

I am new to Selenium, and new to Node.js. I've done the npm installs and put chromedriver and geckodriver in a directory on my PATH. I am on Mac OS X. Running '

How to automate login to a site which is detecting my attempts to login using selenium-stealth

So, I'm trying to write a script to login on https://us.etrade.com/e/t/user/login I am using Selenium for this but it somehow detects selenium when it starts an