Cross-browser test

Ranorex Spy, Recorder, and Studio.
SylvainM
Posts: 1
Joined: Thu Dec 12, 2019 9:37 am

Cross-browser test

Post by SylvainM » Thu Dec 12, 2019 9:45 am

Hello everybody,

I’m setting up a cross-browser test procedure on a web application and I encounter problems with open file dialogs.

Dialogs have different names in each browsers, so my recording module does not recognize them when I switch from one to another.

Is there a way to deal with this?

Thanks in advance, have a nice day !

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 5459
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Cross-browser test

Post by odklizec » Fri Dec 13, 2019 10:16 am

Hi,

This is a common issue with web browsers ;) The best solution is to find common xpath for all browsers and store it in repo. The ideal approach is to open all browsers you are working with, then open individual Spy per each browser and then try to find common attributes in all Open File dialogs.

BTW, if you want to open/load files, all you need is the xpath for 'file' input element and OK button. Don't mess with clicking inside OpenDialog. That's waste of time. Simply enter the path to file you want to open and press OK.
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration