Not able to validate element

Ask general questions here.
Posts: 1
Joined: Fri Jul 18, 2014 3:22 pm

Not able to validate element

Post by venachowdary » Fri Jul 18, 2014 3:35 pm

Hi i tried to validate a element while recording but its not able to record
class name shown as below

<div class="work-header-item work-item-worktype"></div>

and when i record that above class in i am getting like below in ranorex recorder
.//container[@accessiblename='Schedule']/element[2]/element[2]/element[2]/element[2]/element[4]/element[4]/element[1]/text[@accessiblename='First Visit']

but when I try to validate I am not able to validate and my test fails
is there any reason for that i tried all the ways but dint worked to me not only to that to all objects with that same type of class not able to validate data

Posts: 137
Joined: Fri Apr 06, 2012 12:19 pm

Re: Not able to validate element

Post by mzperix » Mon Jul 21, 2014 12:08 pm

Hi venachowary,

I think the forum did not show your code. Use [ code ][ /code ] (without the space), around the html and the xpath, so we can see the whole picture.

What browser do you use? That kind of behaviour is usually because the browser instrumentation could not work for one reason or another. Try to reintrument the browsers. Make sure you download the chrome ranorex plugin from the google chrome webstore.

Best Regards,