Questions tagged [selenium4]

Selenium 4.0 is a new version of open-source tool/framework for automating web browsers. When using this tag, also include other tags for the specific components you are using, e.g. gecko driver. It does support all latest browsers.

Selenium is an umbrella project for a range of tools and libraries that enable and support the automation of web browsers.

It provides extensions to emulate user interaction with browsers, a distribution server for scaling browser allocation, and the infrastructure for implementations of the W3C WebDriver specification that lets you write interchangeable code for all major web browsers.

Selenium 4.0 is the upcoming new version of .


Change Logs

Link to the changelongs of the selenium clients:


Reference Links

195 questions
0
votes
1 answer

SELENIUM PYTHON: How to pass automatic security validation?

I am trying to get in this website: "https://core.cro.ie/". I can get in using normal web search, but I can't get in using selenium. My code looks like this: site= "https://core.cro.ie/" driver =…
0
votes
1 answer

'WebDriver' object has no attribute 'find_elements_by_xpath File "C:\Users\luigi\Downloads\script_sbs.py", line 20

import re import time from datetime import datetime from operator import itemgetter import openpyxl import pandas as pd from bs4 import BeautifulSoup from selenium import webdriver driver = webdriver.Chrome() driver.minimize_window() url =…
0
votes
1 answer

How to integrate event logging with C# and Selenium

I am logging all the events in the Selenium project with C# and NUnit using ThreadStatic attribute because every test is created in a different thread. The problem I am facing is inside the CreateDriver method. The event is being opened in a new…
0
votes
2 answers

AttributeError Py

New to Python Selenium. I am trying to create an script to login to my home router and press the button restart. Running to error, when trying to login to the router, can some on guide on my mistake here. below is the code and also attaching the…
0
votes
0 answers

Fluentwait not ignores given exception

I got No Such Element Exception just right the moment when the code line is in focus. new Fluentwait<>(driver) .withTimeout(Duration.ofSeconds(30)) .pollingEvery(Duration.ofSeconds(3)) …
0
votes
0 answers

How to keep browser open with Selenium WebDriver 4 and JavaScript

How do I keep the browser open with Selenium WebDriver 4, JavaScript, and chromedriver? With the following code, the browser automatically closes after a few seconds: require("chromedriver"); const { Builder, Browser } =…
0
votes
1 answer

org.openqa.selenium.devtools.DevToolsException: You are using a no-op implementation of the CDP

Please be sure to include an implementation on the classpath, possibly by adding a new (maven) dependency of org.seleniumhq.selenium:selenium-devtools-vNN:4.1.3 where NN matches the major version of the browser you're…
0
votes
2 answers

How does one implement the headless option in the Selenium 4 WebDriver-Manager?

I have but one hurdle to overcome before I can truly call my first bot complete and that is to figure out where to put the options class(?) in order to run ChromeDriverManager in headless mode, and so it stops opening chrome instances! The way the…
0
votes
0 answers

Getting error in driver object creation [python] for selenium 4.4.3

driver = webdriver.Chrome(service=ChromeService(ChromeDriverManager().install()), options=options) File "/home/.local/lib/python3.8/site-packages/selenium/webdriver/chrome/webdriver.py", line 69, in…
0
votes
0 answers

Selenium 4 - Endpoint to view selenium-grid configuration parameters

Using Selenium 3.x there was the endpoint /grid/api/hub to view configuration parameters (browserTimeout, newSessionTimeout etc.). Example: According to the documentation…
Tomek
  • 494
  • 2
  • 11
0
votes
1 answer

Selenium 4 CDP Java 8 Network Request and Response

I am trying to capture network request ands response in Chrome browser using selenium 4 and CDP dev tools for a website but getting following errors: The method enable(Optional.absent(), Optional.absent(), Optional.absent()) is undefined for the…
Sneh Tripathi
  • 430
  • 4
  • 14
0
votes
0 answers

Vaadin 8 + Selenium = Slow combination, why?

I've been using Vaadin 8 for years, but a few months ago it was decided to use "Selenium" instead of Vaadin "Testbench". I will list some problems I have, maybe someone has a solution. I found a good explanatory page…
JuBz
  • 55
  • 8
0
votes
2 answers

selenium.common.exceptions.InvalidSelectorException: Message: Given xpath expression is invalid using By.XPATH through Selenium Python

I'm trying to develop an autologin für Instagram and I got the following problem. Here is my code: from time import sleep from selenium import webdriver from selenium.webdriver.common.by import By browser =…
0
votes
1 answer

Cannot catch alert modal using Java Selenium WebDriver 4

I'm automating this site as a practice https://www.demoblaze.com/index.html, after completing sign up modal and click Sign Up button, another pop up is raised to confirm the sign up process. If I don't catch the alert modal I get…
Jillbarvi
  • 15
  • 1
  • 4