Questions tagged [selenium]
Selenium is a popular open-source tool for automating web browsers. When using this tag, also include other tags for the specific components you are using, e.g. selenium-webdriver for the language bindings, selenium-ide, selenium-grid, etc.
96,835
questions
0
votes
0
answers
5
views
Python Selenium, how to wait for an element to be clickable iteratively
I need to download images from site pages using Python Selenium. I select webelements of those images and click them iteratively:
...
THUMBNAILS = browser.find_elements_by_xpath("//div[contains(@...
0
votes
0
answers
8
views
Unable to go to next page and capture text of class element properly using Selenium and Python
Hi I have been trying to extract specific text from a class element and click the button named "Next >" and continue extracting unless there is no similar button found in the page.
Here ...
-2
votes
0
answers
10
views
python selenium web scraping on scroll loading sites
i am trying to get a data on opensea. but it returns not all data opensea is a scroll loading site. how can i get data when scroll load page?
from selenium import webdriver
from selenium.webdriver....
0
votes
0
answers
9
views
Selenium IDE - check if a table cell with additional html tags contains specific text?
I'm looking for a way to check if text exists in a table cell.
I have no problem when there is only simple text in the cell, but my table cell has additional html tags and table.
I would like to check ...
0
votes
0
answers
4
views
How do I log steps within ExtentReport for a POM Project?
I have POM based project in which I'm trying to implement Extent Reports along with logs within the extent report.
As of now, I have one class to configure the extent reports, one class where the code ...
-1
votes
1
answer
12
views
Why would commands in selenium works seperately but if put in script selenium does'nt locate the elements
The problem i am facing is when i run the whole script it throws error of element not clickable or not found. While when i run it command per command it works.
If anyone can explain the reason and why ...
1
vote
0
answers
17
views
Headless Selenium replacing file that is being downloaded
I am using selenium headless to download files from dropdown options.
As the files are being downloaded after each iteration the first file is getting replaced.
When disabling the headless mode the ...
0
votes
1
answer
14
views
In Selenium 4 and above versions wait.until throws java: method until in class org.openqa.selenium.support.ui.FluentWait<T> cannot be applied
I used
WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(60));
wait.until(ExpectedConditions.visibilityOf(driver.findElement(By.linkText("Home"))));
But in wait.until line ...
0
votes
1
answer
19
views
Selenium no such element exists
I am trying to perform a simple checkout flow on my staging website, but I cant seem to find the element. I tried to use selenium IDE which works but when it comes to coding in java I keep getting ...
0
votes
0
answers
5
views
how to click on google apps icon in gmail? tries below code but not working
WebElement email= driver.findElement(By.id("identifierId")); email.sendKeys("abc@gmail.com"); WebElement next_btn=driver.findElement(By.xpath("//span[contains(text(),'Next')]&...
0
votes
0
answers
8
views
Download a file from clicking event using Selenium on Google Colaboratory?
I am scraping a website that clicks on a button to download a csv using python and selenium.
So far the code works perfectly on my local machine and the files are downloaded onto my machine. But I ...
0
votes
1
answer
25
views
Recording browser actions in python
Good afternoon!
I want to make an application that will record all the main actions performed in the browser by the user. For example, entering text into input fields, pressing buttons, and then ...
0
votes
1
answer
24
views
Selenium - How to check if a "Load More" button is clickable/disabled?
I gotta scroll down a list of articles from a Blog until I find a specific article. For that there is a "Load More" button which gives you more and more articles until there's no more ...
0
votes
1
answer
8
views
error "org.openqa.selenium.WebDriverException unkown error : net :: ERR_CONNECTION_CLOSED in chrome"
Code is running fine in local but in jenkins I' getting this errror org.openqa.selenium.WebDriverException unkown error : net :: ERR_CONNECTION_CLOSED in chrome
Language java
0
votes
0
answers
8
views
I want to automate website using keyword Data driven approach by using Page object model in selenium C#
enter image description hereI want to automate website using keyword Data driven approach by using Page object model in selenium C#. I have Created NUnit project,i have tried writing for read data by ...
0
votes
0
answers
5
views
setup CHROMEDRIVER path for Selenium (NodeJS) on cPanel
how do I set up the chrome driver path on cPanel (Nodejs - Selenium )...
I got this error.
"The ChromeDriver could not be found on the current PATH. Please download the latest version of the ...
0
votes
1
answer
20
views
Click share button under youtube video with selenium
import time
from selenium import webdriver
from selenium.webdriver.common.by import By
import pyautogui
titleVideo = input("Enter the title of the video: ")
chrome_options = webdriver....
0
votes
0
answers
10
views
Iterating through different fieldsets in a form using Selenium Python
I am trying to extract the title of videos saved on my webserver. They're saved under a form and the form has different number of field sets that are subject to change depending on how many videos ...
0
votes
0
answers
13
views
What would be the cause of clicking failure in selenium for this checkbox?
I have a page as this,
And I want to click the top checkbox, which by default, would automatically select all the checkboxes in that list. As you can see, I have created the xpath value, and it ...
0
votes
1
answer
20
views
Press a button from popup window with selenium
import time
from selenium import webdriver
from selenium.webdriver.common.by import By
chrome_options = webdriver.ChromeOptions()
prefs = {"profile.default_content_setting_values.notifications&...
0
votes
0
answers
12
views
Refactoring this Selenium Script
Need help refactoring this code using a function to reutilize WEbDriverWait and Search for IDs and Classes without repeating the same statements over and over. The script works as intended but I ...
0
votes
1
answer
10
views
How can I click on buttons with Selenium?
I want to click on "Show more" under the description of this listing by using selenium (I am trying to collect data of multiple listings).
This is what the HTML looks like
<button type=&...
0
votes
1
answer
14
views
Using arguments in Selenium Java on Xpath Expression
I want to use the argument 'option' as part of the findElement by the Xpath Expression:
public HomePage clickSizeOption (String option){
driver.findElement(By.xpath("span[contains(@class,...
0
votes
3
answers
29
views
Can't use Selenium Python to click on a button
I'm pretty new to Selenium and I was trying to create a script to automate some stuff. I can't click on this one button with selenium. This is what I was trying to do, and I have tried a bunch of ...
0
votes
1
answer
14
views
Selenium - Python: send_keys does not send data
I have a problem.
I am trying to fill out the Facebook registration form using selenium. I can fill in all the fields except the 'month' field and I don't really understand why. I don't get any error, ...
0
votes
0
answers
6
views
Tscon not working after disconnecting from rdp vps
I'm using appium to automate desktop .net application and when the test starts I execute the tscon script to disconnect from vps and keep the session alive. If I run tscon before creating appium ...
0
votes
1
answer
27
views
Using selenium to find text of a specific size
I am trying to develop a web scraper in Python to scan messari.io and I am trying to get each cell under the Type field. Using dev tools and inspect, it seems like the text-size is 0.7em. How would I ...
0
votes
0
answers
16
views
Read out Cell and Download another with Link --- C# Selenium
I have a problem with charts/tables ...
reading a specific cell and downloading another.
Steps to follow:
Open page: https://eatradingacademy.com/software/forex-historical-data/
Scroll a little bid ...
0
votes
0
answers
19
views
Unable to launch Chrome Browser in Selenium Remote WebDriver
I am new to Selenium. I am trying to Launch Chrome using Remote web driver. Below are the environment I am using.
Windows : Windows 10 Enterprise
Java Version : 9.0.4
Selenium Standalone Jar : 3.5.3
...
0
votes
1
answer
17
views
selenium form submit erases required camps although button is visible and clickable
I am using selenium with chromedriver. I fill a form where there is a required field. Then I click the submit_and_stay button. Normally the click should send the info to the server and create an entry....
0
votes
0
answers
18
views
Unexpected character when trying to read JSON file with java
Im trying to extract some information from a json file, but i keep getting the error
Unexpected character () at position 0.
Ive tried to comment out the non json text but getting
Unexpected ...
0
votes
0
answers
12
views
Selenium - export button disappears when there are no data to download
I have created an automation via selenium in order to improve the time spent for downloading raw data per user:
What I found out now is that when a user has no data to download the "download&...
0
votes
0
answers
10
views
py selenium get url using client certificate
I have been stuck for a long time, I am trying to open a url in chrome browser via selenium('headless'), but the url requires a certificate to be added.
I have had a .pfx certificate which I could ...
0
votes
1
answer
32
views
Webscraping in python with selenium
I am trying to web scrape the list of DAOs on messari.io. I know there is an API but that is only for the list of assets, and not every DAO has its own asset. My web scraper works until the 320th ...
0
votes
1
answer
19
views
Unable to cast object of type 'OpenQA.Selenium.Chrome.ChromeDriver' to type 'OpenQA.Selenium.Remote.RemoteWebDriver'
I am trying to use WebDriverManager Package for .Net for automatically managing the chromedriver.exe version while executing a test case. But when ever I try to type cast ChromeDriver object to ...
0
votes
2
answers
20
views
Writing Xpath with attribute and text
I'm a newbie to Selenium and I need to be able to xpath the following element with attribute and text.
I am using
//*[text()='Over Due']
but I need it with attribute also to narrow it down to the ...
0
votes
2
answers
46
views
Webscraping with Selenium in Python
I am trying to webscrape the list of DAOs from masari.io but I am having trouble because I get the following errors:
DeprecationWarning: executable_path has been deprecated, please pass in a Service ...
0
votes
0
answers
15
views
AttributeError: MainPage object has no attribute 'execute'
I am using Unittest + Pytest. I need perfrom move over.
Here is first page:
from selenium import webdriver
from selenium.webdriver.common.by import By
import pytest
import unittest
from page.home....
0
votes
0
answers
12
views
selenoid proxy with auth not working after chrome 79
I was using the next code to start selenoid with proxy auth and it worked well, but 1 day ago it stopped doind good
now proxy works only on versions lower than chrome 79, but without selenoid (no ...
0
votes
0
answers
20
views
How to select Options-Button on specifig page C# Selenium
I try to select an option of a Button and found a working solution ;)
But i did not understand why the mostly posted standard will not work.
My solution is this line:
webdriver.FindElement(By....
0
votes
1
answer
13
views
How to execute selenium scripts on an already opened browser
The code below open a new blank window
any solution?
tanks!
Chrome Version 90.0.4430.72 (Official Build) (32-bit)
ChromeDriver 90.0.4430.24
and tried with version
Chrome version 100.0.4896.127
\...
2
votes
0
answers
11
views
Engineering work - looking for a website based on which I could write tests at Selenium and Rest Assured for
I am looking for a website based on which I could write tests in Selenium and Rest Assured using BDD for engineering work. Can you recommend something like that, I was thinking about something like ...
-1
votes
0
answers
25
views
Need help to automate datePicker element in java selenium
There is one datepicker field. I need to fetch its value. When I inspect element its xpath is -
//div[@class='name']/input[@id='uiDate']
I have written code as-
@FindBy(xpath="//div[@...
0
votes
1
answer
25
views
Catching selenium error before it crashes in python
I have a been having a problem with using selenium in my python code as the program keeps crashing.
I have tried to use try, except statement to catch the error so that
when it crashes I can still ...
1
vote
0
answers
25
views
"Failed to read marionette port" when Running Selenium + geckodriver + firefox as a non-root user in a Docker container
I'm running selenium tests inside a docker container, with Firefox and Geckodriver.
When running that container as root, everything works fine.
When running the container as non-root user (USER 1000), ...
2
votes
1
answer
24
views
Try to scrape title using selenium
I am try to scrape title they will go inside every link and scrape the title but they will show me error
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import ...
0
votes
1
answer
51
views
Selenium Service ignoring executable_path?
So I'm on Selenium 4.1.5, and when I try to run:
from selenium import webdriver
from selenium.webdriver.chrome.service import Service
service = Service(executable_path=f'./chromedriver.exe')
driver = ...
0
votes
0
answers
14
views
Unable to launch chrome browser using selenium web-driver
I have installed
java version : 18.0.1
selenium jar version : 4.1.4,
chrome browser version : 101.0.4951.41
I want to launch the google in chrome browser using selenium web-driver test case. But I am ...
1
vote
1
answer
26
views
How can i download specifcs files from a website using Python + Selenium
I want to download some specifcs files from this page: https://www.gov.br/ans/pt-br/assuntos/consumidor/o-que-o-seu-plano-de-saude-deve-cobrir-1/o-que-e-o-rol-de-procedimentos-e-evento-em-saude
This ...
1
vote
1
answer
26
views
mouseover is not working when i am trying to automate selenium python
i am trying automating a website and i am trying to access a menu > submenu and perform a click on the item in submenu. After alot of researching i learned that mouseover is a better option for me ...