uploading file issue in cross-browser testing

Ranorex Studio, Spy, Recorder, and Driver.
yinghu
Posts: 26
Joined: Thu Oct 25, 2012 5:48 pm

uploading file issue in cross-browser testing

Post by yinghu » Mon Dec 03, 2012 5:43 pm

Hi folks,

I am doing cross-browser testing. I build the recording on IE and it works great. But when I run the recording on Firefox and Chrome, it always failed at "uploading file" because it can't find the items or objects in the uploading dialog window.

My Ranorex is 3.3.4. The snapshot is in the attachment.
ChooseFileToUpload.rxsnp
.

Thanks in advance!

yinghu

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: uploading file issue in cross-browser testing

Post by Support Team » Tue Dec 04, 2012 9:00 am

Hello yinghu,

Thank you for the Snapshot file.
It could to be a difference in the RanoreXPath between IE and Firefox/Chrome for the specific item.
Could you please compare the RanoreXPath for the items which cannot be found. Is there a difference between the RanoreXPath for the item in the dialog, which is opened by IE and Firefox/Chrome?
Could you please attach a Snapshot file from the dialog opened by Firefox or Chrome.
Which items cannot be found?

Regards,
Bernhard

yinghu
Posts: 26
Joined: Thu Oct 25, 2012 5:48 pm

Re: uploading file issue in cross-browser testing

Post by yinghu » Tue Dec 04, 2012 4:34 pm

Thanks a lot! Bernhard.

I just found the form base xpaths are different. Like, IE is /form[@title="Choose File to upload"], Firefox is /form[@title='File Upload'], Chrome is /form[@title='Open'].

Other Xpaths are same.

Do you have any ideas? :)

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: uploading file issue in cross-browser testing

Post by Support Team » Wed Dec 05, 2012 11:10 am

Hello,

You need to upgrade your RanoreXPath of your repository item. You could use:
/form[@title='Choose File to upload' or @title='File Upload' or @title='Open']

Please take a look at section RanoreXPath in our User Guide.

Regards,
Markus (T)

yinghu
Posts: 26
Joined: Thu Oct 25, 2012 5:48 pm

Re: uploading file issue in cross-browser testing

Post by yinghu » Wed Dec 05, 2012 2:04 pm

That works!

Thanks Markus !

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: uploading file issue in cross-browser testing

Post by Support Team » Wed Dec 05, 2012 2:12 pm

You are welcome :-)

Regards,
Markus (T)