what woould the relative xPath

satmisha
satmisha used Ask the Experts™
on
Hi Team,

I want to select the value 'AMK'  from the drop-down which is nothing but built up of <Div> tags as mentioned in the attached screenshot. What should be the relative Xpath for this from id 'GroupID' ?

appreciate your early response.
DOMStructure.PNG
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Glanced up at my screen and thought I had coded the Matrix...  Turns out, I just fell asleep on the keyboard.
Most Valuable Expert 2011
Top Expert 2015
Commented:
Right-click the highlighted node and select Copy->Copy XPath.

Screenshot

Author

Commented:
Thank you Kaufmed, I did the same and it is bringing like "//div[@data-value='0'])" whereas I wanted it to be from groupID parameter asmentioned in the screenshot.

Author

Commented:
thanks and apologies for the delay.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial