Assignment 6: Using XPath expressions


I have a problem to get the drop-down lists in assignment 6 to work.
The xpaths I’ve got from chrome seem to work when I test them in XPath helper but when I use them in my code they just won’t work.

To select the first drop down works but when I want the application to click the chosen value it doesn’t work.

To open the first drop down:

To select “Actively implementing RPA now” in the first drop down

Anyone got some idea of what I’m doing wrong?


Hi @jockej try these xpaths:

//*[@id=“mG61Hd”]/div/div[2]/div[2]/div[7]/div/div[2]/div[1]/div[2] to click on the dropdon icon

//*[@id=“mG61Hd”]/div/div[2]/div[2]/div[7]/div/div[2]/div[2]/div[3] to select “Actively implementing RPA now”.


Thanks @ashapkina, they worked just perfect when I changed the quotation mark around the id to "

1 Like

Yes, that’s a very good point :+1:
You need to use straight quotes in XPaths.