Ember JS Xpath is not recognized

rpaexpress
xpath
emberjs

#1

Hi,

I was trying to access elements on a page which has been built on ember js framework. I was not able to accesss the element by Xpath provided by ember js. Workfusion was throwing an error stating no such element found. How can I resolve this?


#2

@vinay_cfuDJoMo

Could you send us the page url so we could check it?

Alesia


#3

Hi,

Thanks for getting back.

URL : https://www.linkedin.com/m/login/

It is a simple POC for I’m working on. Where the use case is to get the top 3 search results for a particular job profile in Linkedin.

Thanks,
Vinay Christopher


#4

@vinay_cfuDJoMo

Don’t use xpaths that contain @id=“ember…”. Use other attributes (like class) or HTML tree nodes.
For example, you can write the xpath of the job title link in the first result in job search as: //*[@class=“jobs-search-results”]/ul/li[1]/div[2]/div[1]/div[1]/a and then iterate through the list of job results using index


#5

Sorry for the late reply. Thanks for the suggestion it worked.