browser = webdriver.Firefox()
browser.get(url)
divs = browser.find_elements_by_class_name('class')
Are there any properties of browser.find_element_by_class_name('class')?
For example if I have code like that:
<div class="foo">
<a href="" class="poo">one</a>
<a href="" class="poo">two</a>
<a href="" class="poo">three</a>
</div>
<div class="foo">
<a href="" class="koo">one</a>
<a href="" class="koo">two</a>
<a href="" class="koo">three</a>
</div>
I want to get text from 'a' tags. But firstly I want to get divs. so I do something like that:
divs = browser.find_elements_by_class_name('foo')
And now I want to get all the 'a' tags from my divs Array. Is it possible?