Quantcast
Channel: Active questions tagged selenium - Stack Overflow
Browsing all 98800 articles
Browse latest View live
↧

What is this Error: at com.google.common.base.Preconditions.checkNotNull

I am a new automation tester, Working on sample test scripts, Need some help from you guys, I have tried to use POM and basic TestNG.I have created 2 packages - pages and testcases.I am getting some...

View Article


Ruby-Selenium WebDriver 3.142.6: Unable to upload file due to...

Unable to upload the file using selenium-webdriver (3.142.6) gem in RubyTech stack:selenium-webdriver (3.142.6)Chrome Version : 77Chrome driver: 77Error...

View Article


How to get element by attribute with Selenium, Xpath and Expected Condition

This is what I'm using:getByAttribute = WebDriverWait(amazonDriver, 10).until(EC.visibility_of_element_located((By.XPATH, "//div[@an-attribute='data-category']"))) The element looks as follows:<div...

View Article

Is it possible to capture websocket traffic using selenium and python?

we are using selenium on python and as a part of our automation, we need to capture the messages that a sample website sends and receives after the web page loaded completely.I have check here and it...

View Article

how to add to an href in python using beauiful soup

I have a script that scrapes a web site and tests all the links in it ha it finds. My issue is that when a come across a link wih a double forward slash (like //us.cnn.com), my script fails.Here is the...

View Article


How can I refactor methods and add enums with On and Off values

How can I refactor code in more readable code?I was thinking of using Enums or fix methods that we have. I'm little bit confused how can we use Enums in this script if its necessary.MobileElement...

View Article

Selenium "get elements inside another element" in nodejs

I'm trying to click in the third input box but I can't use a xpath [3] because it's isolated by divs. How can I get the third "div class price filter" and then get the input?<div...

View Article

Why is WebElement.isDisplayed() giving me a NullPointerException

I need to check for the visibility of an element on the page. I was using (psuedocode) wait.until(ExpectedCondition.visibilityOfElement(locator)); However, the default ExpectedCondition only examines...

View Article


Error occurred during initialization of boot layer when executing Selenium...

ErrorOccuredDuringInitializationofbootlayer I keep getting this error when I run my test: Error occurred during initialization of boot layer java.lang.module.FindException: Unable to derive module...

View Article


How to invoke send_keys() using selenium and Python

I know I am doing something wrong. I need to create software to test a website. send_keys is working just fine for the rest of my code but I am not sure what I am doing wrong in this section. I have...

View Article

Element click is intercepted in the following 'it' block [duplicate]

This question already has an answer here:selenium.common.exceptions.ElementClickInterceptedException: Message: element click intercepted: Element is not clickable with Selenium and Python 2...

View Article

Connect to already started web driver with selenium js

I'm not an expert of Selenium, so I may miss something here.One of the software in the corp starts a google chrome with ChromeDriver.I would like to attach to this browser from my JavaScript code.I...

View Article

Protractor (5.4.2) hangs when running shardTestFiles: true

When running protractor without sharding, it runs just fine, the tests are passing or failing, and in the end the webdriver / protractor execution stops.When trying to run protractor with sharding, the...

View Article


Selenium C# H5 in DIV

I have: (1) <div> <h5> unique name1</h5> <div> <div> I don't want click this div. </div> </div> </div> (2) <div> <h5> unique name2</h5>...

View Article

Change device orientation using Appium and C#

Is there a way to change orientation using e.g. Driver class like this:private void SetDeviceOrientation(string mode) { switch (mode) { case ("Landscape"): driver.Rotate(ScreenOrientation.Landscape);

View Article


Loop for Ruby | Selenium | Web Testing

I'm trying to write some ruby to perform the following:I'm testing a web page which has a form, a search button, and a search results underneath.When I enter an invoice number into the form e.g. 123456...

View Article

How to select an element of a pop up prompt using Selenium

I'm writing a code using Selenium and Chromedriver to remotely control my instagram. I've managed to login to the platform however as soon as I do a pop up asking about activating notifications appears...

View Article


Selenium Java- Drop down selection where Style- display is none

when i try to select a drop down with Style display: none;option 1: WebElement sysDropDown = driver.findElement(By.id("ctl00_ContentPlaceHolder1_ddlFeedStatus")); Select sDropdown = new...

View Article

Image may be NSFW.
Clik here to view.

Download dynamically generated pdf from using selenium

So I'm trying to download pdf files from an ancient internal web system. I put in a request and based on my request parameters, it generates a new pdf and shows it in a new window. Since the pdfs are...

View Article

Image may be NSFW.
Clik here to view.

Use selenium to enter password on website that has virtual keyboard

I am using selenium to log in to a website. But when it arrives on the password page the site asks to enter through a virtual keyboard and the send_keys command does not work.CODE:import time from...

View Article
Browsing all 98800 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>