You are not logged in. Your edit will be placed in a queue until it is peer reviewed.
We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.
Required fields*
-
I tried tr = browser.find_element_by_xpath('//html/body/TABLE/tr') for hierarchysurendra– surendra2017年01月25日 13:42:47 +00:00Commented Jan 25, 2017 at 13:42
-
<body bottomMargin=0 leftMargin=0 topMargin=0 > <TABLE border="1" bordercolorlight="#6D6D6D" cellspacing="1" class=font9 #4D5E8C 1px solid" > <tr bgcolor="#CCCCCC" > <td class="title_1" width ='6%' align="center">case number</td> <td class="title_1" width ='10%' align="center">time of accident</td> </tr> <tr bgcolor="#FFFFFF" style="cursor:hand" onclick="clearwsInfo('2015011800017','2015011800017',this);" ondblclick='doSelect("auditflowForm","2015011800017");'>surendra– surendra2017年01月25日 13:43:50 +00:00Commented Jan 25, 2017 at 13:43
-
<body bottomMargin=0 leftMargin=0 topMargin=0 > <TABLE border="1" bordercolorlight="#6D6D6D" cellspacing="1" class=font9 #4D5E8C 1px solid" > <tr bgcolor="#CCCCCC" > <td class="title_1" width ='6%' align="center">case number</td> <td class="title_1" width ='10%' align="center">time of accident</td> </tr> <tr bgcolor="#FFFFFF" style="cursor:hand" onclick="clearwsInfo('2015011800017','2015011800017',this);" ondblclick='doSelect("auditflowForm","2015011800017");'>surendra– surendra2017年01月25日 13:44:17 +00:00Commented Jan 25, 2017 at 13:44
-
i got the error raise exception_class(message, screen, stacktrace) selenium.common.exceptions.NoSuchElementException: Message: Unable to find element with xpath == //html/body/TABLE/trsurendra– surendra2017年01月25日 13:44:50 +00:00Commented Jan 25, 2017 at 13:44
-
Test this xpath: //table[@class='font9']//tr[contains(@onclick, 'clearws')]Wonka– Wonka2017年01月25日 15:00:34 +00:00Commented Jan 25, 2017 at 15:00
lang-py