Category "selenium"

How to mute all sounds in chrome webdriver with selenium

I want to write a script in which I use selenium package like this: from selenium import webdriver driver = webdriver.Chrome() driver.get("https://www.youtube

python selenium find elements by xpath returns a list of a links but element not interactable

I am using this xpath //a[contains(., 'Download Python')] on www.python.org/downloads in chrome developer tools I get 4 matches, each one match the following

What Exception to throw when a web element is found in Selenium Automation [closed]

Currently, I am working on a "Selenium Wrapper Library", where a set of methods are created in order to perform automation on a particular Web

ImportError: cannot import name 'remote_connection' from 'selenium.webdriver.chrome'

When trying to import this library from instaclient import InstaClient I get the following error C:\Users\localhost\Desktop\Bot>python bot.py Traceback (mos

How to send info to site about desktop resolution in Selenium?

I am developing an application and I need to send some info about the resolution of a browser's window and the resolution of a monitor. The resolution is curre

Exception in thread "main" java.lang.NoClassDefFoundError: org/openqa/selenium/remote/codec/w3c/W3CHttpCommandCodec

Exception in thread "main" java.lang.NoClassDefFoundError: org/openqa/selenium/remote/codec/w3c/W3CHttpCommandCodec Is this error because of dependencies? I i

setUp method: Failed to connect to binary FirefoxBinary(/usr/bin/firefox) on port 7055; process output follows:

When I am running Selenium-Webdriver scripts in Eclipse, it works fine. But the same scripts are running in jenkins in server machine, it is giving the followin

Chrome WebDriver does not open when called from IIS

I have a really strange issue (And I have a really strong suspicion - that it will be on the IIS side). I have .NETCORE6 application, which uses Selenium via IH

Selenium Hub, Launches 2 browser only runs test in 1 of them (selenium python)

TL/DR: Right now it launches 2 browsers but only runs the test in 1. What am I missing? So I'm trying to get selenium hub working on a mac (OS X 10.11.5). I in

How to crawl question and answer of Google People Also Ask with Selenium and Python?

I used this code for crawl question and anwser of Google People Also Ask. I want use that for create idea for writer. But I can't get exactly that element, in t

How to create xpath locator when element does not have any attributes

How can I access the element using xpath selector if that particular element does not have any attributes? <?xml version="1.0" encoding="UTF-8"?> <chal

TOX can't find the browser binary

I met a strange issue - I'm running Selenium tests with Tox on local machine (Windows 10) and it can't find the browser binary unless I pass all env variables t

Selenium DOM is not changed after execution of Angular ng-if condition

we have following code on page which has angular ng-if condition. <p ng-if="!old_email" style="line-height: 20px; font-weight: normal;"><b>Hi,</

How to set Selenium Python WebDriver default timeout?

Trying to find a good way to set a maximum time limit for command execution latency in Selenium Python WebDriver. Ideally, something like: my_driver = get_my_

Filling out create form with values from a list/dict using webdriver

I've located all inputs on a create form with on my application by: _inputs =find_elements_by_xpath("//form[@id='createForm']//input") and I got my list of val

CucumberException: Failed to instantiate class stepDefinitions When run tests

Please help. I think that there is a mistake when initializing the page public class AuthStepDefinitions { private final AuthPage authPage = new AuthPage();

Cannot find findelementbyandroiduiautomator method for appium android driver

I am using android driver with mobileElement typecast, but I cannot find the findelementbyandroiduiautomator method in my list of methods. All the other methods

WebScraping Table from Opensea

I am trying to scrape the data from the table on opensea.io/rankings. I can't seem to get data from every column. The output consists of 5 things per row, but t

Select random element from the list in Selenium Java and click on it, but getAttribute is not equal to zero

I'm trying to get random element from the list and click on it. The thing is, the elements are products which have attribute "quantity" and I want to click on t

How to automate OTP using selenium web driver?

I am doing automation for registration in a website but the problem is that it sends an OTP once i enter mobile no. after enter otp it will ask for password and