Discussion:
[selenium-users] python selenium get all tr inside tbody, by id name contain
Thiago Salgado
2018-12-02 17:19:40 UTC
Permalink
Hello all,

IÂŽm tring to get all trs inside tbody, but only trs contain ID with
'string'.

i will put here what im tring, but not working.

tbody = self.driver.find_element(
By.XPATH, '/html/body/form/div[3]/div[2]/div[2]/table/tbody/tr/td/table[1]/tbody')
trs = tbody.find_elements_by_xpath("//tr[contains(@id,'gridDespesasEmpenhos_DXData']")
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+***@googlegroups.com.
To post to this group, send email to selenium-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/fd98ae1c-c235-4a88-b97f-acd964c9f654%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...