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 ArticleRuby-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 ArticleHow 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 ArticleIs 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 Articlehow 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 ArticleHow 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 ArticleSelenium "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 ArticleWhy 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 ArticleError 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 ArticleHow 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 ArticleElement 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 ArticleConnect 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 ArticleProtractor (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 ArticleSelenium 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 ArticleChange 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 ArticleLoop 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 ArticleHow 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 ArticleSelenium 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 ArticleDownload 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 ArticleUse 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