Questions tagged [findelement]

180 questions
1
vote
1 answer

We have @FindBys and @FindAll in Selenium Java, how to use same code to find locators in Python

We have @FindBys and @FindAll in Selenium Java, how to use same code to find locators in Python? @FindBys( { @FindBy(className = "class1") @FindBy(className = "class2")} ) Please guide me someone.
1
vote
0 answers

How to click on the option of a drop down menu with a div tag with selenium python?

The drop down menu that I want to select is store in div so I cannot use the Select() class.
Carol Vieira
  • 69
  • 2
  • 9
1
vote
1 answer

Python Selenium find next Element after an Element is found

I got some problems to find the right element using Selenium. The HTML code looks like this:
Shark00n
  • 85
  • 1
  • 10
1
vote
1 answer

Condition if element exist still continues even if the element is not existing in Selenium Python

I have this code that if the element exists, it will print the innerHTML value: def display_hotel(self): for hotel in self.hotel_data: if hotel.find_element(By.CSS_SELECTOR, 'span[class="_a11e76d75 _6b0bd403c"]'): …
KiritoLyn
  • 626
  • 1
  • 10
  • 26
1
vote
2 answers

How to use findElements method with implicit waiting?

In the method document it's written: When implicitly waiting, this method will return as soon as there are more than 0 items in the found collection, or will return an empty list if the timeout is reached As i see (please fix me if i'm wrong),…
Eitanos30
  • 1,331
  • 11
  • 19
1
vote
1 answer

Selenium find element where ID attribute begin with unique characters and ends with random characters

This is the code for my button in HTML: and the class I define for many other component and the id always begin with…
1
vote
1 answer

find element in selenium by sub string

I am coding in java with selenium and i am stuck. I have to find element by ID, the Id of the element is like this "msi_num_create-copy" (the num is changing every time), there is a way to find the element by part of the Id?
Fayas Hussain
  • 69
  • 1
  • 7
1
vote
1 answer

Selenium JS Cannot Find Elements on Other Pages

I cannot find elements that I want to interreact with on any page other than the main page. The electron app I am working with has several that load with the start of the app but I am only able to access the elements on the first page. I think there…
Nic.C
  • 11
  • 2
1
vote
2 answers

No id in Amazon search result page to find with selenium

I am using the following python code: from bs4 import BeautifulSoup from selenium import webdriver from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.firefox.options import Options from selenium.webdriver.support import…
Mike
  • 369
  • 5
  • 21
1
vote
1 answer

selenium python how to find and click element that change everytime

im trying to find an element with dinamic values , for example Save in inspect element, the id and class values tend to change for every refresh, how can i in this case find the element…
1
vote
0 answers

Python Selenium webdriver element finding by link text

I´m trying to enter a webside world with selenium with this code: World_select = driver.find_element_by_link_text('USA 15') World_select.click() Even with this code I can´t enter it. driver.find_element_by_partial_link_text('USA 15').click() The…
crytowave
  • 41
  • 1
  • 6
1
vote
2 answers

Message: no such element: Unable to locate element: {"method":"xpath","selector":"/html/body/div[2]/div[2]/div/div[3]/div[2]/div/div/div[2]/a[1]"}

from selenium import webdriver from selenium.webdriver.common.keys import Keys from selenium.webdriver.support.ui import Select import time print('\n') print("PROGRAM STARTING") print('~~~~~~') print('\n') # initiate driver driver =…
1
vote
0 answers

VBA Selenium Select a value from drop down menu

and thank you for reading.. New to selenium ( 4 days only) I want to select a value from the dropdown part highlighted in the image. I need to select the value "Late Speed" to the drop down selection,however I think this is a dynamic dropdown…
Alex of the Wild
  • 143
  • 1
  • 3
  • 8
1
vote
2 answers

jQuery: find all elements with

I'm looking to a way to apply this solution to all of the fields which have . So far I've only seen the way to find element by ID using jQuery and then attach an input filter. However, what I'm trying to achieve is to add such…
Richard Topchii
  • 7,075
  • 8
  • 48
  • 115