Ranorex can't find element
Posted: Fri Sep 06, 2019 2:37 pm
Hi All,
I am trying to automate a button click to send a message to someone on linkedin website. Everytime, I visit the particular page for my friend's profile the message button appears to have a different path.
On the first run, I got the path below
.//div[#'ember5']/div[5]/div[3]/div/div[2]/div/div[2]/div/div//ul/li/div/div/div[3]//button[@innertext='Message']
On the second run, ranorex could not find the element and I noticed that the path had changed to the path below
.//div[#'ember7']/div[5]/div[3]/div/div[2]/div/div[2]/div/div//ul/li/div/div/div[3]//button[@innertext='Message']
As you can see, looks like that the first time I went to that page "ember5" was in the path however the second time I went to the same page "ember7" was in the path.
Attached is a screenshot using the spy tool.
Can someone recommend a way to fix this problem so I can always find that Message button on the linkedin website?
Thanks
Ricardo
I am trying to automate a button click to send a message to someone on linkedin website. Everytime, I visit the particular page for my friend's profile the message button appears to have a different path.
On the first run, I got the path below
.//div[#'ember5']/div[5]/div[3]/div/div[2]/div/div[2]/div/div//ul/li/div/div/div[3]//button[@innertext='Message']
On the second run, ranorex could not find the element and I noticed that the path had changed to the path below
.//div[#'ember7']/div[5]/div[3]/div/div[2]/div/div[2]/div/div//ul/li/div/div/div[3]//button[@innertext='Message']
As you can see, looks like that the first time I went to that page "ember5" was in the path however the second time I went to the same page "ember7" was in the path.
Attached is a screenshot using the spy tool.
Can someone recommend a way to fix this problem so I can always find that Message button on the linkedin website?
Thanks
Ricardo