Category "selenium"

Official locator strategies for the webdriver

In the official W3C webdriver documentation, it's clearly stated that the location strategies are: State Keyword -------------------------

selenium webdriver: upload file by drag and drop

On a web page I'm trying to test, we implemented drag and drop file upload. I've looked at the drag and drop API for selenium action chain API. It looks like it

Python : no module named selenium

After searching the web for hours i didnt yet find an answer to my problem. I am using Python 3.6 and i cant import selenium. I always get the message "No modul

Selenium C# DefaultWait IgnoreExceptionTypes does not work

I'm using DefaultWait while waiting for an WebElement to be clickable. Although TargetInvocationException is one of the exceptions in my list of exceptions to b

How to get value from a disabled text field when the value is not present in ID or in any attribute using Java in Selenium WebDriver

I have a few disabled text field auto-populated with some values based on my previous input. I want to verify whether auto-populated values are as per my previo

Running pyinstaller another pc with Chromedriver

I am trying to add Chromedriver inside an executable in pyinstaller. While this is possible it seems that I get the below error message when trying to run this

Run Java Selenium tests in Azure DevOps release pipeline

I'm doing a POC for a Java project in an AzureDevops CI/CD pipeline. I created a Maven project that has Selenium tests (TestNG) that run against a demo website

Running forced automated translation in Google Chrome and Edge. Translation not working

I am trying to run different web page translations in Google Chrome and edge. This is the option I would want to use for all languages to English. I have tried

Chromedriver for Chrome 77 is supposed to support headless downloads, but download still doesn't work

On the ChromeDriver downloads page (https://chromedriver.chromium.org/downloads) it lists "Support to save file downloads in headless mode" as a feature for Chr

Selenium handling html elements inside object tag

I'm struggling with validating html elements inside html object tag. Following is my test html (test1.html). <html> <body> <h1>this is t

Click a button in a table, but all rows contain automatically generated identical buttons in Selenium

I am currently doing QA Automation on a web application with Selenium WebDriver, and the language I decided to use is Python 3. Everything was going great until

How to long press (Press and Hold) mouse left key using only Selenium in Python

I am trying to scrape some review data from the Walmart site using Selenium in Python, but it connects this site for human verification. After inspecting this '

setValue is not a function webdriver io 7

i'm trying to use the function of webdriver io 7 setValue() but I always received the same result. I post my code. This is the page object Home import Page from

Javascript Selenium save screenshot in a different directory

Is there a way to store a saved screenshot in a specific directory rather than the default root folder? Thanks

Javascript Selenium save screenshot in a different directory

Is there a way to store a saved screenshot in a specific directory rather than the default root folder? Thanks

Can write any other code to move the question in MS-Form using Python selenium, if element class have changed?

I am trying to use Python Selenium to move the question in Microsoft Form by clicking "↓", move-question-down icon (Fig 1). The HTML structure is in Fig 2

How to use existing login token for telegram web using selenium webdriver

I'm trying to read telegram messages from https://web.telegram.org with selenium. When i open https://web.telegram.org in firefox i'm already logged in, but wh

How to scroll smoothly with Selenium WebDriver and/or Sikuli in Java

As part of a test suite measuring FPS for a web application I need to perform a smooth scroll of the web page. That is, the same smoothness as when a user grabs

How to turn off 'Enhanced Tracking Protection' for Firefox browser via Selenium WebDriver?

My Selenium Java test script runs on Firefox browser. Recently, it has started failing on applications where 'Enhanced Tracking Protection' is turned on. https:

How can I specify the number of elements that test positive for the locator I'm using?

In Selenium when waiting for an element to load how can I specify the number of elements that test positive for the locator I'm using? This is my case, I want t