0

In the following snippets, XPath for the drop down element in last column of accounts table is similar in Subtab and Main page.

I am using the XPath expression

//table/tbody/tr[2]/td[10]/span/div/a[2][@role="button"]

to click on drop down element. But unable to do so as it happens to appear in the previous page too.

Please help me in identifying unique irrespective of tabs.

U880D
  • 8,601
  • 6
  • 24
  • 40
Rakesh
  • 1
  • 1
  • Please read why a [screenshot of HTML or code or error is a bad idea](https://meta.stackoverflow.com/questions/303812/discourage-screenshots-of-code-and-or-errors). Consider updating the Question with formatted text based relevant HTML, code trials and error stack trace. – undetected Selenium May 01 '18 at 19:04

1 Answers1

0

You can use this XPATH :- (//table/tbody/tr[2]/td[10]/span/div/a[2][@role="button"])[1]

Ankur Singh
  • 1,239
  • 1
  • 8
  • 18