Questions tagged [findelement]
180 questions
1
vote
0 answers
Rselenium findelement function to identify button with shared class name
I have an R code using RSelenium, where for a given website I want the code to click the "get more departures" button. I have seen a similar question, however when I enter the "class" name in the the findelement function the result is that a button…

Roberto
- 181
- 8
1
vote
3 answers
Element not found when executing findElement in Selenium
I'm trying to fill in multiple forms that come after each other, all the forms get filled swiftly with no errors because I make sure to add
WebDriverWait wait = new WebDriverWait(driver,…

DM Malkawi
- 37
- 2
- 8
0
votes
0 answers
i have a problem finding element with javascript
Full Chrome extension code:
manifest.json
{
"manifest_version": 2,
"name": "Cookie Tab Viewer",
"version": "2.0",
"description": "Get cookies of the current tab.",
"permissions": ["cookies", "activeTab", "http://*/*", "https://*/*"],
…

Beanoid
- 11
- 2
0
votes
2 answers
Python Selenium NoSuchElementException although the element is there
i was trying to build a webscraper but i came to the point where i try to select a select-element() but Selenium cant find the object and throws the Exception.
I used find_element with the correct XPATH (100% sure), but it just doesnt work. I tried…

Elias Petrat
- 1
- 1
0
votes
2 answers
why does my selenium code work sometimes yes, sometimes no?
I have little experience with selenium and would like to understand why my code sometimes finds the necessary elements, and sometimes it returns an error message saying that it did not find anything.
Here is a print of one of the errors that…

Ana Fortes
- 9
- 3
0
votes
1 answer
Not able to use find element by id on browser stack using appium 2.0
I am using following :
Code is in C#
Appium 2.0
Device or env Browser stack
When i am trying to use my code to find element by id on above i am not able to find the element by id but when i use same code on my local machine using android emulator i…

shantanu kulkarni
- 50
- 4
0
votes
0 answers
C# Selenium Visual Studio stopped finding elements with no locator, the same tests once passed now give them an error
I'm a beginner and I'm learning automated testing, but I have a problem with Visual Studio 2022, it doesn't find elements with FindElement with any locator. Тhe first tests of the project pass, and it found elements with FindElement, but on the…

Mimi
- 1
- 1
0
votes
0 answers
Links extraction both in the case when a website had only a single page and multiple pages
From the below code, I could extract the href links from a website when it only had one page in it; but, when a website has multiple pages, the code below is not extracting the links from all of the pages. Therefore, I need to alter the code so that…

jaga jagga
- 37
- 3
0
votes
0 answers
How to change zipcode in the geolocation searchbox and find the price of a product as per the url through Selenium
I am trying to get the prices of this rice cracker (https://www.sayweee.com/en/product/Want-Want-Senbei-Rice-Crackers/17119) using different zip codes inputting into the geolocation searchbox, and the zipcodes I used are from my GCP pub/sub topic…

Karenzz
- 1
0
votes
1 answer
Finding attribute of elements with same xpath not working
I am attempting to get the title attribute for every listing on a market.
Element:
My code:
xpath =…

Dallin Kump
- 37
- 6
0
votes
1 answer
How to find an "input" element using Selenium/Python3
I am trying to login into Instagram by using selenium and Python but I cant get find input elements like "uername" and "password". I am using Google Chrome
HTML

gisgis
- 103
- 2
0
votes
1 answer
Accessing element on a webpage using Python Selenium
I am not able to find or access any element on the following…

Vishal
- 1
- 1
0
votes
1 answer
Python Selenium cannot get anything when using .text method
HTML/CSS I'm trying to extract, the highlighted text is what I'm trying to extract
I'm specifically trying to get a verification code out of an email from Mailinator, however, I have tried getting and printing text from anything and nothing appears…

Rush Neighbors
- 3
- 2
0
votes
0 answers
A locator in Java Selenium Testng dataprovider is coming in a very long time. Why could it be?
I have a static ExcelUnits class. I get a list from Excel and I wanna test with the list. Everything is working correctly. The locator is too late for only 1 html tag. It takes 20 to 30 seconds. That's too much. If I try this locator outside of…

Bilal Günaydın
- 1
- 4
0
votes
0 answers
Python Selenium automation is not locating message button on instagram
I am trying to send a direct message to the usernames saved in another file. But my code is not locating the message button on Instagram.
I've tried all possible ways to locate it (By Xpath, classname, tag_name, css_selector), but I'm still getting…