Category "selenium"

How to automate graphs using Selenium, Java

I inject data into a web application and it generates a graph and a pie chart. I'd like to test the result on the graph is coherent with the given data through

Selenium WebDriverException: DevToolsActivePort file doesn't exist (Chromium browser)

I've seen the DevToolsActivePort error come up in a couple of StackOverflow posts, but not of the fixes for those have worked for me. I'm using a Chromium brows

xpath to find pseudo-element ::after in side a div element with out any content

I am trying to write xpath to find a checkbox selected or not, this checkbox is being changed using css ::after element. Below are two elements I have //d

Get node IP address for a single session id in selenium4 grid

We are moving from selenium 3 grid to selenium 4 grid(with hub & node setup). We need to be able to fetch IP address of node on which the current session is

Would it be the right approach to close and open a new WebDriver session between negative tests in Selenium?

I close my driver and reopen it between each negative test, for example - in my negative login test - if the test failed it means the login succeeded, then I cl

Python Selenium Wait for user to click a button

Context: My script launch to a website using selenium webdriver The user fills in some stuff on the website The user will click a button which will popup a con

Java: Unable to locate status button

I am working on a feature file in Selenium and I am having issues trying to read the status button. If the status symbol is set to "Invited," it is supposed to

How to set timeout for "Page should contain element" in Robot Framework / Selnium when using "Create Webdriver"

I'm having an issue with the "Page should contain element" keyword in combination with the "Create webdriver" keyword. For example, using the "Open browser" key

Comparing dates works on one machine but not on another

I have an issue where on one machine comparing dates fails and on another it passes. I'm using Assert.AreEqual: Assert.AreEqual(Convert.ToDateTime(tableValue).

Selenium browser persists after a test is finished

I am using Firefox and the Selenium IDE plugin. I have a test for the login of my application. After the end of the test the browser stays logged in and the ses

Selenium Python - Get Network response body

I use Selenium to react to the reception of data following a GET request from a website. The API called by the website is not public, so if I use the URL of the

Is it a wise thing to add validation functions into the Page Object Classes in a selenium automation framework based on Page Object Model?

I've frequently seen code where the test validation functions are frequently written into the Page Object classes themselves. Is there any use to doing this? Ma

Unable to click option in dropdown list selenium

I tried using the Select module, but when I do the Element is either not interactable or it is "not visible". Here are the relevant codes. HTML < head &g

How to select option in drop down protractorjs e2e tests

I am trying to select an option from a drop down for the angular e2e tests using protractor. Here is the code snippet of the select option: <select id="loc

Unable to locate element in Python Selenium with Chrome extension

I am trying to click on a button however when I do so I get an error stating that it cannot be found. NOTE: You will only see this button if you have the chrome

Connect Remote Database using Selenium Webdriver and run Test Cases from local machine through eclipse

I am using selenium web driver java built, the editor is eclipse. For testing one of our websites I am using Data-driven testing by fetching data from MySQL dat

How do you use credentials saved by the browser in auto login script in python 2.7?

When I manually open a browser, both firefox and chrome, and proceed to a website where I previously saved my login credentials via the browser, the username an

Code unreachable when adding Selenium ChromeOptions

For some reason my Python code displays as unreachable after adding a series of WebDriver options. Does anyone know why this is happening and how it can be fixe

How to set default download directory in selenium Chrome Capabilities?

Please find the below code with the chrome capabilities. In fact the browser is not downloading the file to the specified path. private static DesiredCapabili

Selenium give file name when downloading

I am working with a selenium script where I am trying to download a Excel file and give it a specific name. This is my code: Is there anyway that I can give th