Quantcast
Channel: Active questions tagged selenium - Stack Overflow
Browsing all 98743 articles
Browse latest View live
↧

When I try to run two classes parallelly in TestNG xml, 2nd class gives...

I am using POM by selenium java. While trying to run two classes parallelly with TestNG xml I am facing this issue that the second class is not running properly. But when I use @BeforeClass annotation,...

View Article


docker: selenium chrome driver setup

I've tried so many times to set up my docker with selenium and I please need your help.My actual docker file is:# syntax=docker/dockerfile:1# Comments are provided throughout this file to help you get...

View Article


How do I fix "pip"?

I have python 3.8.0 (on a Windows PC)When I try to run: pip install selenium I get the following error:Fatal error in launcher: Unable to create process using '"c:\python38\python.exe"...

View Article

"disconnected: not connected to DevTools" error in Selenium with Chrome...

I am encountering a "disconnected: Unable to receive message from renderer" error while using Selenium with Chrome WebDriver.The issue occurs after connecting to a VPN and attempting to open a web page...

View Article

Image may be NSFW.
Clik here to view.

SessionNotCreatedException: Message: Could not start a new session. Response...

I installed selenium/standalone-chrome in docker, and the version is 4.1.2. But when I run my python code get bellow error:My selenium/standalone-chrome in docker:My python code:def demo(): options =...

View Article


Hello, I have a question about artificial intelligence, can you help me?

It should search from Google, but I open and close Google and then I get an error like this. `selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element:...

View Article

Selenium throws "NoSuchElementException" while using Google search

It should search from Google, but I open and close Google and then I get an error like this. `selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element:...

View Article

Return the court number for a court that is not booked [closed]

The attached code will log on, go the Friday and then check if there is a available timeslot at 18:00(red is booked, grey is free). If the timeslot is free, then it should return the court number. At...

View Article


Selenium WebDriver How to Resolve Stale Element Reference Exception?

I have the following code in a Selenium 2 Web Driver test which works when I am debugging but most of the time fails when I run it in the build. I know it must be something to do with the way the page...

View Article


How to replace the deprecated WebElement.get_attribute() function in Selenium...

On some web pages, due to rendering issues (e.g., hidden element), WebElement.text may not reveal the underlying text whereas WebElement.get_attribute("textContent") will. Therefore I have written the...

View Article

Allure command not recognized , but version command works

I am trying to use Allure for generating test reports. I have installed Allure and added the bin folder path to the system's environment variables. When I run allure version in the terminal, it works...

View Article

Getting Null Pointer Exception when running the testcase via BDD Selenium

I'm having trouble with NullPointerException while running the program with the Runner class, but when I run through the .feature file, the program executes properly. I made every effort, but I'm not...

View Article

Robot framework script with open browser keyword fails on jenkins with OS Error

OSError: [WinError 14001] The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log or use the command-line sxstrace.exe tool for...

View Article


Avoid Overwriting Downloaded PDFs with Same Filename using Selenium in Python

When downloading PDF URLs from an Excel file using Selenium in Python, a common issue arises where files with the same filename get overwritten during the download process. This problem occurs because...

View Article

Selenium - C# / Edge - Selenium always opens "Data:," Page

I am completely new to Selenium and just playing around and already struggle on the most simple thing: navigate to a Site.driver.Navigate().GoToUrl("https://www.google.de");executing this will get me...

View Article


Image may be NSFW.
Clik here to view.

Blocked a frame with origin from accessing a cross origin frame in ios...

For our web portal, we are getting the below error, when automating entering payment details in web page for ios safari, Blocked a frame with origin from accessing a cross origin frame.Our portal is...

View Article

Selenium chrome-standalone download file without popup

I'm trying to run Selenium in docker. Therefore I have the selenium/standalone-chrome together with node in my docker-compose:# Inspired by...

View Article


How can we automate data fetching for Core Web Vitals?

I have been asked to maintain a daily report where I keep a track of the number of good, poor and average urls every alernative day. The way that this works is usually that today, we would get the data...

View Article

Selenium C# - Opening New Tabs Becomes Slow or Times Out When Many Tabs Are Open

I am automating a website using Selenium in C#. My use case involves opening up to 50 tabs in a single browser instance, while also using multiple browser instances simultaneously in separate threads.I...

View Article

Image may be NSFW.
Clik here to view.

Selenium build unstable in Jenkins but fine locally

SOLUTIONS POSTED BELOW - TLDR; this dumbs down to using presence_of_element_located with the wrong use case and then not thinking of browser and driver desync.ISSUE: Issue in which tests pass locally...

View Article
Browsing all 98743 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>