Page 1 of 1

Object found by Spy but not at runtime

Posted: Tue Mar 07, 2017 12:16 am
by dochoa
Hello,

I have this xpath:
.//div[#'awe-listContainer']/div/div[@class!='flex-content light-azure-bg']/div/select[@data-bind='value: languageCode, event: {blur: validateItem, change: updateItem}' and @value=$LanguageCode]

Using Spy or from the Ranorex Repository browser I can find and highlight the object.
If I run the test module with the object by itself, the object is found and it is successful.

But every time I run my entire test suite, it cannot find the object. Same computer, same browser that I used to highlight the object in spy.

How can this happen? What is different at runtime?

OS: Windows 7 SP1
Browser: Chrome 56.0.2924.87
Ranorex: 6.0.1

Re: Object found by Spy but not at runtime

Posted: Tue Mar 07, 2017 8:23 am
by odklizec
Hi,

At first, Ranorex 6.0.1 is way too old and no longer supported. Please update it with most recent 6.2.1.

At next, please upload a Ranorex snapshot (not screenshot) of the problematic element along with exact error you are getting (ideally Ranorex report). Without snapshot and error message, it's impossible to tell what's wrong.

The most common reason why the xpath is not found while running entire test suite is not binded/incorrectly binded variable(s). Are you sure the variable $LanguageCode is binded to a correct data source?