Back

Explore Courses Blog Tutorials Interview Questions
0 votes
1 view
in RPA by (12.8k points)

I see that the absolute path keeps on changing.

1) //div[@id='details']/div[2]/div[2]/div1/div[2]/dl[8]/dd1

2) //div[@id='details']/div[2]/div[2]/div1/div[2]/dl[7]/dd1

Need your help in writing the relative expression in place of the absolute expression.

This is for using with Automation Anywhere for automating a website.

1 Answer

0 votes
by (29.8k points)

HI, please try the following

//dl[dt/text()='Email Address']/dd

This essentially corresponds to:
Find a dl element that has a direct child
dt element with text 'Email Address'
Find a direct child element dd under the dl element
You can then use it in Object Cloning.

Related questions

Welcome to Intellipaat Community. Get your technical queries answered by top developers!

28.4k questions

29.7k answers

500 comments

94.2k users

Browse Categories

...