Script fail to identifiy the object even when fully loaded

Technology specific object identification, supported applications, web technologies, and 3rd party controls.
Kumar
Posts: 24
Joined: Fri Aug 03, 2012 12:12 pm

Script fail to identifiy the object even when fully loaded

Post by Kumar » Sat Oct 13, 2012 9:37 am

Hi,

I am using Ranorex for cross browser testing, i am mostly using Record and playback for this.

Script is always fails to identify few objects. I have tried the below things:

1) Run complete flow (Normal Scenario) : Script Failed
2) When i highlighted the element from Repository, it was able to identify. Then ran the script from the line were if failed (Play from here) : Script again failed, reason the same and this time it can't be a synchronization problem because the object is available.
3) I recorded a new script which does operation on the failed object and even here it failed on play back :(

I tried using mouse click, Invoke action (Ensurevisible, performclick), but no luck. Can anyone please suggest what could be possibly going wrong? :roll:

I have attached the snapshot of the application, if that could help.

Kumar
Posts: 24
Joined: Fri Aug 03, 2012 12:12 pm

Re: Script fail to identifiy the object even when fully loaded

Post by Kumar » Sat Oct 13, 2012 11:29 am

Hi,

Again this problem occurred, one of the object property had changed so updated it to Regular expression.

Initial Object was identified with ID value "ctl00_pageBody_tabContainer_tabForm_requestFields_ctl04_field403']"

Next time when i ran the script the object property had changed to "ctl00_pageBody_tabContainer_tabForm_requestFields_ctl04_field403"

I used regular expression and made the changes as below:

[@id~'ctl00_pageBody_tabContainer_tabForm_requestFields_ctl0._field403']


After this change scripts fail while accessing the object. Is this a bug? or i am doing something wrong?

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Script fail to identifiy the object even when fully loaded

Post by Support Team » Mon Oct 15, 2012 10:38 am

Hello,

I cannot find the Ranorex Snapshot. Could you please add it again?
It is hard to say if it is a bug without additional information.
Is it possible to get access to your application to reproduce this issue?

Regards,
Bernhard
Ranorex Support Team
.
Image

Kumar
Posts: 24
Joined: Fri Aug 03, 2012 12:12 pm

Re: Script fail to identifiy the object even when fully loaded

Post by Kumar » Mon Oct 15, 2012 11:05 am

HI,

Please find the attached snapshot.

Sorry, I will not be able to provide access to the application it's a not available in internet.
Attachments
App.rxsnp
App Snapshot
(379.21 KiB) Downloaded 198 times

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Script fail to identifiy the object even when fully loaded

Post by Support Team » Tue Oct 16, 2012 9:26 pm

Hello,

Thank you for the snapshot file.
The snapshot seems to be OK. It is hard to reproduce this issue.
Which version of Internet Explorer do you use? Does the issue occur with other versions too?
Additionally you could try to update Ranorex to 3.3.3.

Regards,
Bernhard
Ranorex Support Team
.
Image

Kumar
Posts: 24
Joined: Fri Aug 03, 2012 12:12 pm

Re: Script fail to identifiy the object even when fully loaded

Post by Kumar » Wed Oct 24, 2012 3:16 pm

Hi,

I am using IE 8 and this problem is occurring even in Firefox.

I don't think this has anything to do with browser. Because the objects are being identified when i highlight from Repository and the screenshot captured on failure by the tool shows that object.

This problem is affecting me very badly all my scripts which were prepared couple of weeks before are failing and all are due to similar reason.

And I will not be able to upgrade this tool version as the latest is not validated from our customer and i don't think it will happen sometime soon.

Kindly help out with with this problem, I am stuck badly without knowing what would be the possible solution.

Thanks & Regards,
Kumar

Kumar
Posts: 24
Joined: Fri Aug 03, 2012 12:12 pm

Re: Script fail to identifiy the object even when fully loaded

Post by Kumar » Thu Oct 25, 2012 5:22 am

Hi,

This problem is occurring every time i run the script specially in IE.

Even though the object is visible and it is highlighted, the doesn't work the same script works perfectly fine with Firefox.

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Script fail to identifiy the object even when fully loaded

Post by Support Team » Fri Oct 26, 2012 11:32 am

Hi,

Which error message are you getting when the script fails, could you send us the error message of that action?
Are you using a repository variable somewhere in the RxPath to that element?
Please also send us the used (full) RxPath of the element which cannot be found.
Please also check if the following RxPath would work for you: "/dom[@caption~'^eForms\ -\ Travel\ Authoriza']//table[#'requestFieldsTable']/tbody/tr[4]/td[2]/span/input".

Are you using repository folders, if yes is the property "Use Cache" set to false for each of them?

Regards,
Markus
Ranorex Support Team
.
Image