Quantcast
Channel: Active questions tagged selenium - Stack Overflow
Browsing index pages (99364 articles)
↧

How do I get a list of child elements using winappdriver in a win32 application?

I am using WinAppDriver (using NUnit and C#) to test some legacy win32 Applications.As I debug the tests, I reach certain points where I need to see a list of all child elements of the selected...

View Article


Take a full-page screenshot using a Chromium-based driver?

I’m practicing Selenium and ran into an issue with screenshots.For a normal screenshot, I’m using:File source = ((TakesScreenshot) driver) .getScreenshotAs(OutputType.FILE);This works fine with my...

View Article


How to attach a PDF file on WhatsApp Web using Selenium? (Error: “The file...

I’m trying to automate sending messages on WhatsApp Web using Selenium (Python), and I need to attach a PDF file.This is the code I’m using:from selenium import webdriverfrom...

View Article

Get CSS selector string from WebElement in Selenium WebDriver - Java

I have a WebElement and I'm simply trying to extract the CSS selector string. This is the value of the variable when I debug the code:[[ChromeDriver: chrome on MAC (345345345n5435345b34)] -> css...

View Article

Need to retrieve xpath or css from WebElement Object at run time

What are the possible ways to retrieve xpath or css (any logic) from WebElement object? For example I have created WebElement by following way:WebElement...

View Article


Passthrough is not supported, GL is swiftshader, ANGLE is

When trying to run headless chrome with selenium I am getting this error:[1021/151706.155:ERROR:gpu_init.cc(453)] Passthrough is not supported, GL is swiftshader, ANGLE ismy setup code:from selenium...

View Article

ERROR:gl_surface_egl.cc(750)] EGL Driver message (Critical) eglInitialize: No...

I am trying to execute basic python google chrome automation selenium commandI am getting below error while executing the below code:from selenium import...

View Article

Helium driver.execute_script but what should be the first argument?

I have the below HTML fragment. The fragment is a drop down:<select class="single-option-selector no-select selector single-option-selector-100" data-option="option1"...

View Article


TestNG [Error] no test suite found. nothing to run

I am Unable to run the testng test suite from command line I am using windows System TestNG [Error] no test suite found. nothing to run had report ng listeners i have removed that fro my xml and i have...

View Article


NoSuchMethodError: org.openqa.selenium.support.ui.WebDriverWait.until

i am trying to run the below selenium code : WebDriver driver; System.setProperty("webdriver.chrome.driver", "C:\\Driver\\chromedriver.exe"); driver = new ChromeDriver();...

View Article

How to get image of particular web element as base64

I'm using Selenium web driver and Python to create automation scripts for web application testing. I need to implement verification that will compare two strings of encoded png files as base64: saved...

View Article

Driver info: driver.version: unknown using ChromeDriver v78.0.3904.70 and...

I am using java 1.8 with chrome browser version 78.0.3904.97. I am trying to execute my selenium script code with the chrome driver version 78.0.3904.70. but while execution I am facing below issue and...

View Article

How to search / find all results using Selenium Java Webdriver

Dear Selenium Webdriver Specialists,I am new to this framework and needed a bit of advice on how to locate / find all the search results from a sales property listing website. Below is a working...

View Article


How to enforce block-insecure-private-network-requests using Selenium

chrome://flags/#block-insecure-private-network-requestsI want to Disable / Block insecure private network requests with selenium web driver chrome options Python.What flag add_argument() do I need to...

View Article

Simple test with selenium HTMLUnitDriver do not work fine, is it wrong?

I am a beginner with selenium, I am doing a test but I do not understand why it does not work.Here are my code and the following error. import org.openqa.selenium.*; import...

View Article


Could not start a new session. Possible causes are invalid address of the...

I am trying to run a simple program using Selenium Grid(have no prior knowledge of selenium grid), and I am having error shown as below:Exception in thread "main"...

View Article

Selenium - getWindowHandles() is returning value 1 irrespective of number of...

I am currently automating an application based on IBM Cognos platform using selenium + Cucumber + Internet Explorer and is facing some challenges. I need some expert help from this group on the...

View Article


SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in...

I'm confused as to what is causing this error:The chrome version is 100.0.4986 which is the latestGoogle chrome version Python version is 3.9.1:Python versionChrome web driver version is 100.0:Chrome...

View Article

selenium chrome driver without cache

Maybe someone know how to surfing in Chrome without using browser cache?I run in loop get the pages in the incognito-mode and do not close the browser. But it seems it used cache, because the browser...

View Article

Scrape only the text of reviews from Airbnb using selenium?

I am trying to extract reviews only from Airbnb webpages.I tried the following codefrom bs4 import BeautifulSoupfrom selenium import webdriverfrom webdriver_manager.chrome import...

View Article
Browsing index pages (99364 articles)


Latest Images