I am building a crawling code on a web page running only on IE11.
My problem is that python selenium,selenium.webdriver.Ie
, find completely different element of HTML
element = driver.find_element_by_xpath("//*[text()='1']")
I look for element which text is 1 on the calendar and element.text
's output is also 1 in juypter notebook
like picture.
enter image description here (I can't be embedded because I'm a Newbie. I'm sorry.)
But if i operate element.click() in browser(driver, HTML),18 is clicked in browser. enter image description here Why did my code operate like this?
element = driver.find_element_by_xpath("//a[text()='1']")
. If possible, could you provide sample code of the HTML Table element or the link to this webpage so that we can reproduce the problem? Thank you for your understanding.