Questions tagged [selenium-webdriver]
Selenium WebDriver provides the WebDriver API for controlling browsers in different programming languages ("language bindings"). When using this tag, also add a tag for the programming language you are using.
55,776
questions
0
votes
0
answers
2
views
Selenium WebDriver Python - can't capture the error message that shows up
I'm trying to track down a popup(?) error here after typing an invalid email and display the text in the console but can't find it anywhere.
I could not find this error an message in the source code.
...
0
votes
0
answers
4
views
What is best framework that I can use to automate a portal authored by AEM
I need to automate AEM based web application. I am planning to use page object model design pattern with Test NG using selenium java. Please let me know if this can be a good framework or not in order ...
0
votes
0
answers
9
views
Running headless Firefox browser in a virtualenv without install Firefox in it
I would link to know how can I run headless Firefox with Python 3 in a virtual environment without install Firefox in that environment. I have it installed in my system(Linux Mint) though. Here what I ...
-2
votes
1
answer
12
views
How to save a video of Selenium java test in headless mode?
I am writing a Ui test in Java, with Testng and selenium.
And I look for a way to save a video file , after running.
I set the webDriver to run with headless mode, because in the Virtual machine I ...
0
votes
0
answers
4
views
How to get the verify in selenium Python
I am writing a test for cancel a data request at the page: https://school.moodledemo.net/admin/tool/dataprivacy/mydatarequests.php
There is a pop-up when cancel a data request
My code to catch this:
...
-1
votes
0
answers
7
views
com.amazonaws.SdkClientException for sending email in Selenium JAVA on IntelliJ
The code was working fine until yesterday and all of sudden it started giving me the error that Unable to send email at 't.sendMessage(msg, null);'
There were no updates happened in my device(mac) and ...
0
votes
1
answer
10
views
Question about identifying features/properties of particular cookies
I'm currently doing a research project on cookies using selenium and chromdriver.
Currently I'm grabbing all cookies from a given website and storing each cookie into a csv file, but my goal is to see ...
0
votes
0
answers
16
views
selenide has a problem with chrome versions newer than 114
When i try to open any site using selenide with chrome version newer than 114 i get an error:
HTTP 404 executing https://chromedriver.storage.googleapis.com/LATEST_RELEASE_119 2023-12-02T15:58:16.710+...
0
votes
0
answers
9
views
Python / Selenium-webdrivers doesn't work on cloudlinux x86 64bit / cpanel
My solution works locally on windows 10. with python 3.12
Deployed to a linux server with Python 3.11.5, I get the exception:
Service /home/project/.cache/selenium/chromedriver/linux64/119.0.6045.105/...
0
votes
0
answers
6
views
how to make profiles for undetected chrome driver?
i can not make profiles with undetectedchromedriver
using Selenium.WebDriver.UndetectedChromeDriver;
ChromeOptions options = new ChromeOptions();
for(int i=1;i<=10;i++){
var webBrowser=Selenium....
-1
votes
0
answers
10
views
Selenium cant find Instagram unfollow button
I'm working on an Instagram bot that navigates on a target profile and for all his followers its clicking follow and unfollow one by one. However there's the problem: when it comes to click unfollow ...
0
votes
0
answers
11
views
How to use proxies with seleniumbase?
I am trying to use a proxy with seleniumbase but i get:
You are using an unsupported command-line flag: --ignore-certificate-errors. Stability and security will suffer.(at the starting chrome page)
(...
0
votes
0
answers
13
views
Proxy with Selenium getting result very slow
i am in stuck for quite couple of days, so i need guidance, i am scraping website using selenium and i am getting result in max 8 seconds, but as i am scraping every after 5-10 seconds i need proxies ...
0
votes
0
answers
33
views
Click Button in Edge [closed]
I tried to use below find element in excel VBA but does not work.
br.Get url2
br.FindElementById("refresh").Click
br.Refresh
Application.Wait DateAdd("s", 20, Now)
...
0
votes
0
answers
27
views
Upload file with drag & drop using selenium python
I have developed a Python program using Selenium to upload files through drag and drop. In the actual scenario, the user drags the file from their system, and after dropping it onto the site's page, ...
0
votes
0
answers
12
views
ValueError: I/O operation on closed file on Selenium after version 4.14.0
I've been running these kind of code with Selenium before version 4.14.0. For example the code below works with Selenium 4.13.0 without problem. But after 4.14.0 it gives the error as
"ValueError:...
0
votes
1
answer
29
views
Send keys when my windows keyboard is diffrent than the string language
I would like to send email address using selenium to specific element, however my keyboard is configured to Hebrew while the string I trying to send is in English. this results with sending instead of ...
0
votes
0
answers
8
views
how to install webdriver_manager on mac
ERROR: Could not find a version that satisfies the requirement pywin32 (from ChromeDriverManager) (from versions: none)
ERROR: No matching distribution found for pywin32 (from ChromeDriverManager)
...
0
votes
0
answers
16
views
How to run behat test with selenium driver on drupal?
I download jar file selenium-server 4.15.
Install chrome driver.
But get response 500 and driver version unknown. Maybe someone have the same problem?
I want to run behat test but It can not create ...
0
votes
0
answers
18
views
How to refresh a stale WebElement if the locator isn't known prior to runtime?
Background: This project is using Page Object Models to define WebElements that are used as base references to find children that may or many not exist during runtime.
@FindBy(xpath = "//app-...
0
votes
1
answer
29
views
Selenium webdriver handling errors
Hello I am a beginner to python and selenium and I wanted to make a simple program that open google chrome. Am using PyCharm.
This is the code:
Code image
And this is the errors that are being thrown:
...
0
votes
1
answer
27
views
Encountering a Mysterious 'str' object has no attribute 'page_content' Error in Python Script Using Selenium, Trafilatura, and LangChain
I'm currently working on a Python script that involves web scraping using Selenium and Trafilatura, followed by text summarization using LangChain with Map Reduce. However, I've encountered a ...
0
votes
0
answers
11
views
Why is Chrome DevTools Protocol's Network.getResponseBody event returning a "No resource with given identifier found" error?
This is the error I'm getting:
Response Body: {"value":{"error":"unknown error","message":"unknown error: unhandled inspector error: {\"code\":-...
0
votes
0
answers
12
views
Selenium Headless Chrome empty page source (not UA issue)
so I am trying to open some pages with selenium Chrome, and everything works fine while headless mode isn't used. But when I use headless mode, the page source returns
<html><head></...
0
votes
0
answers
26
views
Selenium: For loop stopping after first iteration
I have a very simple for loop for following every follower of an Instagram profile using this piece of code:
follow_buttons = self.driver.find_elements(By.XPATH, "Follow button xpath"...
0
votes
1
answer
35
views
Control over browser lost when executable path is specified
I've renamed the chrome executable to rome.exe for experimenting purposes, and well, it doesn't open the webpage by driver.get() but it does open the chrome, by debugging I found out that I've lost ...
0
votes
0
answers
28
views
Testcases skipped:Issue on applying Pytest-dependency and Pytest-Ordering
Tried intergrating pytest-dependency and pytest-ordering in my testcases that are in different python files and issue below rises where dependent testcases are skipped. Seen similar issues here in ...
-3
votes
1
answer
56
views
Selenium webscraping using CSS selectors to extract [closed]
I know basic scraping using requests and Beautiful Soup but I don't know much about Selenium Webdriver. The page uses a lot of JavaScript and I am able to grab everything except image and product URLs....
0
votes
1
answer
47
views
org.openqa.selenium.NoSuchElementException: Unable to find element with locator By.xpath : issue unresolvable
I have been trying to click on this button Accept all cookies on the website: https://smartenergycodecompany.co.uk/the-smart-energy-code-2/
It just doesn't seem to work. I have changed XPath, ...
0
votes
0
answers
23
views
net.thucydides.core.webdriver.DriverConfigurationError: Could not instantiate class org.openqa.selenium.chrome.ChromeDriver
net.thucydides.core.webdriver.DriverConfigurationError: Could not instantiate class org.openqa.selenium.chrome.ChromeDriver
at net.thucydides.core.webdriver.WebDriverFacade.newDriverInstance(...
-1
votes
0
answers
29
views
E AttributeError: 'Test_Login' object has no attribute 'driver'
When i'm trying to run my code using pytest framework which is as below, i'm facing the Driver Attribute issue. Request your help in fixing this issue. All the browser setup is in the conftest.py file....
-1
votes
1
answer
37
views
I want my selenium web dirver use my chrome cookies and i also want to pass the driver instance created once to beanother class
I want the chrome driver instance created in main class to be used in the class handlecase
public static void main (String args[]) throws IOException, OpenXML4JException {
...
-2
votes
0
answers
11
views
How to skip a particular field in a application form, which is non mandatory
i am automating a Bank account opening form, where few field are not mandatory
example - first name,
surname,
contact number,
email address ,
phone number ,
address,
nominee and
age
salary
let say i ...
-1
votes
0
answers
10
views
Web driver open the automated site and run for few sec automatically close the site . I am beginner in selenium for web scraping
from selenium import webdriver
from selenium.webdriver.chrome.service import Service
import time
s = Service("C:/Users/Administrator/Desktop/Selenium/chromedriver-win64/chromedriver.exe")
...
0
votes
0
answers
19
views
chrome not reachable - session not created: Chrome failed to start: exited normally
I'm getting following error when trying to run tests using nightwatch on docker container (amazon linux 2):
**
Docker Image**: public.ecr.aws/codebuild/amazonlinux2-x86_64-standard:5.0
Error
agent_1 |...
0
votes
2
answers
57
views
first steps with selenium dont work properly
i don't know what exactly is the problem, but i see lots of red
CODE:
from selenium import webdriver
window = webdriver.Edge("C:\\Nowy\\msedgedriver.exe")
window.maximize_window()
window....
0
votes
1
answer
37
views
ChromeDriver only supports Chrome version 114 not 160
I've got the following error when my Chrome browser got updated to version 160:
"org.openqa.selenium.SessionNotCreatedException: session not created: This version of ChromeDriver only supports ...
0
votes
2
answers
39
views
Selenium with Headless Google Chrome on Heroku Dyno Always Times Out
This is similar, but not a duplicate of: How to run Selenium Webdriver correctly on Heroku with a Rails app
I've tried all of the answers that are in that question, but they don't work. My output is ...
0
votes
0
answers
24
views
Trying to use JavascriptExecutor to test a button but getting 'Unexpected keyword or identitfier'
I have the following line in my code:
JavascriptExector js = (JavascriptExector) driver;
I'm getting red lines under it with the error message Unexpected keyword or identifier
i tried importing import ...
0
votes
1
answer
16
views
Selenium Entering Username and Password in Alert box
I'm trying to input a username and password into an alert box using selenium and Java. I'm not sure if this is an alert box or something else, but I've attached a screenshot for reference.
enter image ...
0
votes
0
answers
15
views
Selenium is throwing selenium.common.exceptions.WebDriverException: Message: <!doctype html> error on Driver setup
Selenium Version : 4.15.2
Google Chrome : Google Chrome 119.0.6045.159
Chrome Driver: ChromeDriver 119.0.6045.105
OS: Ubuntu 20.04.6 LTS
While driver setup getting exception and not chrome is not ...
-5
votes
0
answers
23
views
Facing "page unavailable" error loading issue for my selenium python code [closed]
Can anyone help me? I need a proper code to interact with such captcha issue , Page is unavailable showing , I"m unable to solve captcha manually, Please give me solution -------------------------...
0
votes
1
answer
13
views
Selenium does not mimic chrome behaviour
I'm trying to use selenium to get to the cached version of some websites. Unfortunaly, I'm not getting the same results as in Chrome.
When I go to chrome and enter:"cache:https://www.nytimes.com/&...
0
votes
0
answers
14
views
Edge Driver Probleme With Selenium on Javascript
For my work in my company. I need to test if on the environment I can open a web page from JavaScript with edge. The problem is that this code opens edge but not the google page. it doesn't open ...
0
votes
0
answers
10
views
Selenium Manager - Artifactory Binaries
I am currently trying to get Selenium Manager to point to Artifactory to fetch our ChromeDrivers.
I am wondering if anyone has successfully done this and how you did it? I know we need to set the env ...
0
votes
1
answer
24
views
driver.findElement can not find xpath with /parent
I have this code:
WebElement element = (driver.findElement(By.xpath("//span[contains(text(), 'skupiny "+skupina+"')]/parent::div/descendant::input")));
With this the element can ...
0
votes
0
answers
22
views
Unable to fetch data from HTML table and convert it into Data frame in robot framework with Python
I am trying to fetch data from html table and convert it into dataframe using robot framework. I have created custom keyword to fetch data from data frame
locator = xpath://div[@class='virtualized-...
0
votes
1
answer
35
views
Selenium automation Python (Web Scraping)
I've developed a Python-based web scraping code using Selenium. Unfortunately, the process takes quite some time, and my Chrome webpage tends to reload automatically, causing interruptions to my ...
0
votes
1
answer
18
views
how to take screenshot and save image in Selenium IDE
I am using selenium IDE for Auto Task with chrome browser.
I would like to know how to take screenshot and save image seleniumIDE.
CaptureEntirePageScreen commad is not found in selenium IDE .Please ...
0
votes
0
answers
18
views
Downloading documents via interacting with a form using Python and Selenium
I am currently writing a script for extracting all pdf files from an inbox and placing them into a google drive.
A specific company always supplies an access code in the body of the email along with a ...