Skip to content Skip to sidebar Skip to footer

Selenium Can't Find Elements By Xpath

I'm trying to extract some odds from a page using Selenium Chromedriver, since the data is dynamic. The 'find elements by XPath' usually works with these kind of websites for me bu

Solution 1:

At first I misunderstood, sorry, turn out it is too a problem I used to face.....


It is in another frame which id is SportsbookIFrame, You need to navigate in to the frame

In [58]: driver.switch_to_frame("SportsbookIFrame")

In [55]: dayElems = driver.find_elements_by_xpath("//div[@class='ng-scope']")

In [56]: len(dayElems)
Out[56]: 26

For searching iframes, they are usual elements:

iframes = driver.find_elements_by_xpath("//iframe")

Post a Comment for "Selenium Can't Find Elements By Xpath"