java.lang.NullPointerException is appearing [duplicate]
This question already has an answer here:What is a NullPointerException, and how do I fix it? 12 answersI am new in automation. Here is my simple TestNG login code , when I ran the code as TestNG it...
View ArticleTrying to access an element in silverlight via c# selenium webdriver [duplicate]
This question already has an answer here:Element MyElement is not clickable at point (x, y)… Other element would receive the click 3 answersselenium.common.exceptions.ElementClickInterceptedException:...
View ArticleSelenium + Python how to listen for change of element
The idea is to create a bot to read message from a chat, and all message are in a ul>li(not neccesary to write message), e.g<ul class="message-list"> <li class="message"> Hello There...
View ArticleNightwatch.js - How to do assertion on new browser tab
I have to test one scenario. User types desired URL to text which is linked with button. When user clicks this button, user will be directed to typed URL.When I do assertion for new tab (Google),...
View ArticleSelenium ChromeDriver Cannot assign requested values
The chromedriver for selenium has recently stopped being able to bind. I am able to launch the hub and the chromedriver, but once I start running the tests, there are errors shown below. Does anyone...
View ArticleHow to pass caret sign (^) to the selenium web driver send_keys() method
I am doing automated tests with python and selenim web driver and need to login to website using complex password.I need to pass any special charecters including caret sign (^) to the send_keys method...
View ArticleElement must be user-editable in order to clear it (Behat)
I am automating a website using the Behat framework, working in PHPStorm, have the latest chromedriver and selenium jar up and running:I cant seem to interact with standard Date fields across the site...
View ArticleWhy does my code skips a step on Robot Framework
I'm trying to make an automated test for my company's website. The code passes my test, but it skips a step while doing it. It is supposed to First delete text from the input area and after that add a...
View Articlehow to get Selenium fully working in google Colab
I'm trying to use selenium in google colab but the script returns nothing. When I run that same script on my local machine it works...!pip install selenium !apt-get update # to update ubuntu to...
View ArticleIs there a way to ignore upper case when trying to find a link by linkText...
I am using Selenium 2 Webdriver.I want to click on a link but the link text can be "Linktext" or "LINKTEXT". Is ther a better way than that:List<WebElement> list =...
View ArticleRunning selenium tests using drupalextension inside ddev docker containers
Just received help from rfay on Drupal slack, and wanted to post both problem and solution here for the reference of others.Problem: Get DrupalExtension based testing working inside of ddev containers....
View ArticleSelenium Grid in Java: org.openqa.selenium.SessionNotCreatedException:...
I've wanted to write a Selenium Grid app in Java.On http://localhost:4444/grid/console it says that the node is connected to the hub.On the client-side I've wanted to write the following:try {...
View ArticleHow to retrieve an element within several tags by tag name for selenium...
I'm creating an automated selenium test using org.openqa.selenium.By to grab certain elements on the webpage that is loaded but I get nothing back when I'm searching for some elements. This is probably...
View Articleselenium & chrome 78 failing basic authentication
In a C# program, just installed chromedriver 78.0.3904.70: Loading URLs protected by Basic Authentication is now failing.Before chromedriver 78: Setting driver.Url = [basic-auth-url] would cause Chrome...
View ArticleSelenium how to upload files to Microsoft Edge
I am using the following code to upload files to a website to a 'file' type element.The code works fine in Firefox, Chrome and Safari.However when I run the code against Edge the file is NOT...
View Articlehow to pass the instagram challenge with selenium? [closed]
i want to pass the challenge for Levpasha's instagram API using selenium so i want to rewrite the login function to get the code from another function that returns the code from my gmail. I tried to...
View ArticleHow do I open chrome on the host from a python selenium script running in a...
I need to debug a python script that run in a Docker container. I want to run the chrome driver in a NOT headless mode to see what is happening, but obviously the window of the browser cannot be opened...
View ArticleStop Driver Process after - session not created: This version of ChromeDriver...
When trying to initialize the ChromeDriver to run selenium tests in C#, this mismatch error causes the chromedriver executable to remain running.I've modified the code to catch the exception and then...
View ArticleSelenium Chrome Driver Frame HTML doesn't match Inspector
Using Selenium with Chrome 78. The page I am parsing has two frames and the PDF document is embedded in the second frame. To troubleshoot I open the site in Chrome and click F12 for debugging. The...
View Articlehow do i retrieve the text which is under div tag in Selenium
I do have to fetch all 21 values and print it on console which are under div tag. When i am writing path //div[@class='grid']/div/div[1], its giving me 21 div tags(elements) as a result and each of div...
View Article