tag:blogger.com,1999:blog-2973787519736718861.post8492871093287046733..comments2024-03-13T05:54:14.145-07:00Comments on Software testing tutorials and automation: Selecting Checkbox From Table Based On Preceding Or Following Sibling Column Value In WebDriverUnknownnoreply@blogger.comBlogger5125tag:blogger.com,1999:blog-2973787519736718861.post-26696051380720230512020-07-31T02:37:20.355-07:002020-07-31T02:37:20.355-07:00Hi,
Can I know how to select check box based on tw...Hi,<br />Can I know how to select check box based on two preceding siblingsVanajahttps://www.blogger.com/profile/02199344076161938255noreply@blogger.comtag:blogger.com,1999:blog-2973787519736718861.post-9024575869004390702020-07-14T07:48:30.679-07:002020-07-14T07:48:30.679-07:00Hi,
I want xpath for the checkbox before one hyper...Hi,<br />I want xpath for the checkbox before one hyperlink QUA1:ACC26419,I want xpath with preceding sibling QUA1:ACC26419, please help me above procedure isn't working for me. WHERE<br />XPATHS<br />form xpath = //form[@name='TPADMINFORM']/table[2]<br />checkbox xpath = //form[@name='TPADMINFORM']//tr[2]//input[@name='SETUPAFITEMNO']<br />hyperlink which is after checkbox xpath = //a[.='QUA1:ACC26419'].<br />HELP ME IN FINDING XPATH BASED ON HYPER LINK WHICH IS AFTER THIS CHECKBOX<br /><br />Vanajahttps://www.blogger.com/profile/02199344076161938255noreply@blogger.comtag:blogger.com,1999:blog-2973787519736718861.post-79527988075379513002017-01-02T18:53:40.902-08:002017-01-02T18:53:40.902-08:00Just to highlight we have to use sibling to refer ...Just to highlight we have to use sibling to refer to the next immediate , without mentioning sibling system considers all the following elements instead of the immediate oneGaurav Khuranahttps://www.blogger.com/profile/10953219489651469548noreply@blogger.comtag:blogger.com,1999:blog-2973787519736718861.post-68049694524828843542017-01-02T01:57:04.702-08:002017-01-02T01:57:04.702-08:00Hi You have missed @ symbol before id . It should ...Hi You have missed @ symbol before id . It should be @idGaurav Khuranahttps://www.blogger.com/profile/10953219489651469548noreply@blogger.comtag:blogger.com,1999:blog-2973787519736718861.post-6504737752764500122016-04-14T03:41:25.046-07:002016-04-14T03:41:25.046-07:00Hi,
WebDriver driver = new FirefoxDriver();
dri...Hi,<br /><br />WebDriver driver = new FirefoxDriver();<br /> driver.get("http://only-testing-blog.blogspot.in/2015/01/table-with-checkbox.html");<br /> <br /> WebElement dTable= driver.findElement(By.xpath("//*[id='post-body-3107268830657760720']/div[1]/table/tbody"));<br /><br />Not able to locate this table. Please help...Unknownhttps://www.blogger.com/profile/10087096284558523249noreply@blogger.com