Category "selenium"

Is there a way to use an XML file to run Selenium tests?

I have a selenium test with over 100 lines of findElement, click(), sendKeys().... Is there a way I can create an XML or text file of the different parameters a

How to detect if Chrome browser is headless in selenium?

I'm writing a selenium test which has different behavior given whether the chrome browser was started as headless or not. My question is in my test how do I det

How I can get HTML tags where located some text

I have some text, like message I have a method who search this last message: def get_message_text(self): return self.get_elements(f"//*[@data-qa='Paragraph-

Network connection throtling with Selenium - Java

I have been trying to implement network throttling with Selenium-WebDriver based on the snippet available here in this post. https://stackoverflow.com/a/5652609

Selenium Google Login Block

I have a problem with Google login. I want to login to my account but Google says that automation drivers are not allowed to log in. I am looking for a solution

Proxy: Selenium + Python + Firefox

I'm trying to set up a proxy for Selenium and Firefox (using Python). I have seen many tutorials and posts how to do it, but most are outdated or don't work for

Unable to open a link in new tab using Actions Class

I am trying to open a link in a new tab using selenium java automation code. Initially i tried with actions class but it wasn't working. Later i tried using the

Click on pop up/ alert to launch web app using selenium

Currently in my tests when i select a button a pop up appears asking me to launch my web application However I cant seem to switch onto this pop up as if its a

How do I start doing Automation with Salesforce?

I'm currently writing some automation with Salesforce, Python and Selenium. My problem is that some of the Dynamic Elements are not reachable. However, I would

Some websites dont fully load/render in selenium headless mode

So I have a problem that I have been noticing with selenium when I run it headless where some pages don't totally load/render some elements. I don't exactly kno

Cannot connect to chrome at 127.0.0.1:53007 while using undetected_chromedriver in Python

I am trying to use undetected_chromedriver for bypassing Cloudfare Protection. This is the simple code I am trying to use import undetected_chromedriver as uc f

TestNG Gradle how to run multiple suites in parallel

I was wondering if there is a way to run multiple test suites in parallel with TestNG + Gradle. I have a master suite file which contains other individual suite

How to enter a value in webdatagrid (Infragistics) using Selenium?

I have a Infragistics webdatagrid on one of the web pages I am working. It shows like a table and when we click on any of the cell, it will become like an input

Setting a default for nosuchelementexception for multiple variables in python

So I am scrapping multiple rows of a table and many of them are either available or not for different pages. What I want to do is to detect which field is not a

HOW TO USE JavascriptExecutor in Microsoft edge using java and selenium

We have automation project we need to click menu items we use this below code ((JavascriptExecutor) test.getDriver()).executeScript("mCLICK(arguments[0]);", sub

Is it possible to speed up move_to_element() in Selenium or what are other alternatives?

What is the fastest way to trigger an onmouseover event when scraping a webpage? So I want to move the mouse over a div element, which is then calling a javasc

How to find specific element in list and its' button (Selenium Python)

I am trying to find an specific element with class='name' <h3Brook/h3> then click on the specific button inside of that div. Only care about "Brook" which

Error: not found: java Usage: selenium-standalone action [options]

trying to install selenium-standalone but getting this error, any idea? $ ./node_modules/.bin/selenium-standalone install not found: java Usage: selenium-stan

How to use Edge Chromium webdriver "unknown error: cannot find MSEdge binary"

I am trying to use the WebDriver for the Edge Chromium version with PostMan, but I cannot make it work. WebDriver Download: https://developer.microsoft.com/en-

Detect if a WhatsApp message is sent using Selenium Webdriver

I am trying to making a program that sends a message on WhatsApp if someone else sends a message, but I don't know how to check when a WhatsApp message is sent.