I have no clue why this is happening. I'm trying to convert what the webdriver returned (a money value of $1.00) to an integer so I can run it through a called function, but I can't split to take away the $ because of this error. Here is my code:
element = driver.find_elements_by_css_selector(".something")[0]
element2 = element.find_elements_by_tag_name('tag')[19]
[s.split('$')[0:] for s in element2]
element3 = int(element2)
print(elment3.text)
I'm getting this reject
TypeError: 'WebElement' object is not iterable
Shouldn't this be a list and be iterable?
Thanks!