Assignment 6: Using XPath expressions

rpa-express
aa_rpa_s
#1

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:
//*[@id=“mG61Hd”]/div/div[2]/div[2]/div[7]/div/div[2]/div[1]/div[1]/div[1]/content

To select “Actively implementing RPA now” in the first drop down
//*[@id=“mG61Hd”]/div/div[2]/div[2]/div[7]/div/div[2]/div[1]/div[1]/div[3]

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

#2

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”.

#3

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

1 Like
#4

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