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. .
Thanks in advance!
yinghu
uploading file issue in cross-browser testing
- Support Team
- Site Admin
- Posts: 12167
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Graz, Austria
Re: uploading file issue in cross-browser testing
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
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
Re: uploading file issue in cross-browser testing
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?
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?

- Support Team
- Site Admin
- Posts: 12167
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Graz, Austria
Re: uploading file issue in cross-browser testing
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)
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)
Re: uploading file issue in cross-browser testing
That works!
Thanks Markus !
Thanks Markus !
- Support Team
- Site Admin
- Posts: 12167
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Graz, Austria