A
A
Aleksandr2019-05-08 14:47:29
Python
Aleksandr, 2019-05-08 14:47:29

How to display the number of results found?

Hello everyone)
There is this line:

td = browser.find_element_by_xpath("//td[text()='36']/following-sibling::td[1]")

is it possible to display the number of found values ​​\u003d= 36 ?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Q
qlkvg, 2019-05-08
@QQQ-RRR

find_element s _by_xpath

D
Dmitry Shitskov, 2019-05-08
@Zarom

combo response

td = browser.find_elements_by_xpath("//td[text()='36']/following-sibling::td[1]")
return(len(td))

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question