Questions tagged [findelement]

180 questions
0
votes
1 answer

How to find an element using xpath?

I am new to coding and I am trying to create a checkout bot. I am using selenium to help me do this. So far my code works up until the checkout I can't seem to get my bot to click the checkout button. This is what I get when I inspect the checkout…
0
votes
2 answers

How to print element of div class value using python selenium web driver

How to print value for the class="valueValue-3kA0oJs5" from below snippet, Tried below things but no luck.
0
votes
2 answers

find_element_by_xpath() gives me Syntax Error by only copy a pasting Xpath from Safari

This is the website I want to take data: https://www.wunderground.com/history/daily/gb/london/EGLC/date/2017-2-10. I want to take the Day Average Temp which is 2.7 in this case. When I inspect the element in safari I can copy the row as a HTML,Xpath…
0
votes
1 answer

Multiple IWebElements with same class all point to the first one

I'm using Selenium in C#, to try and get the values from a table on the web into a local table. I get all the rows using: var allTableRows = driver.FindElements(By.ClassName("table-row")); I can see that allTableRows has multiple different rows,…
Filip5991
  • 383
  • 1
  • 3
  • 13
0
votes
1 answer

what is the difference between cssSelector and ByCssSelector in selenium

what is the difference between By.cssSelector and By.ByCssSelector in the below code. driver.findElement(By.cssSelector("test")).click(); driver.findElement(By.ByCssSelector.id("")).click();
kamal
  • 1
0
votes
1 answer

If condition is not working when browser.find_element_by_xpath has no data or unable to locate element

if not(browser.find_element_by_xpath('//div[@id="MainCopy_ctl13_presentJob_EmailAddressPanel"]//a')): email = 'No data' else: email =…
0
votes
0 answers
0
votes
1 answer

Selenium: Difference between driver.find_elements_by_xpath() and driver.find_elements_by_class_name()

I have a problem: tag = driver.find_elements_by_xpath('//*[@class="du4w35lb k4urcfbm l9j0dhe7 sjgh65i0"]') tag = driver.find_elements_by_class_name("du4w35lb k4urcfbm l9j0dhe7 sjgh65i0") I thought both would work the same but when I ran them, the…
0
votes
1 answer

SAP Automation GUIShell - subtype Toolbar how to handle PressButton

I am new to automation, trying to automate SAP but stuck in handling GuiShell (122) - SubType: Toolbar session.findById("wnd[0]").maximize session.findById("wnd[0]/usr/subSUB_COMPLETE_OIP:/SCWM/SAPLUI_DLV_PRD:2000/subSUB_OIP_DATA_AREA:" _ &…
prasidh
  • 11
  • 2
0
votes
1 answer

TypeError: find_elements_by_tag_name() takes 2 positional arguments but 3 were given error using find_elements_by_tag_name() using Selenium and Python

I'm currently running some automation testing, and it seems that the button called "Next" is not allowing me to do any action with any indication like Xpath, ClassName, or Tag_Name. What should I do in this circumstance? import requests import…
Hvaandres
  • 755
  • 2
  • 12
  • 39
0
votes
3 answers

Unable to locate element with xPath

I'm literally going crazy to find an element in a specific web page. It's an "Enter" button but I haven't been being able to locate it. ERROR MESSAGE: selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate…
0
votes
0 answers

i need a way to find element by full tag in web automation using selenium and python

I'm using selenium and python to web automation. in my program i get some tags that are overlay and i need to remove them. so if every time i get a different tag like these: 1-
2- 3-
Mamad
  • 21
  • 4
0
votes
1 answer

How to utilize an element found via the find "findelements" command in Rselenium?

I'm trying to select a certain checkbox using the link below. I've managed to find the checkbox using the findelements command, however the problem is that I can't actually use the elements I found with the findelements command to click on an…
John_Ruf
  • 43
  • 1
  • 5
0
votes
2 answers

find_element_by_id not working on a specific site but works for Youtube

SOLVED! I didn't know what iframes were and Arundeep Chohan mentioned them in the comments which lead me down a rabbit hole and know I got it to work. I would like his answer but he left it as a comment. Thanks…
BirdBud
  • 143
  • 1
  • 15