Page 1 of 1

Cross-browser test

Posted: Thu Dec 12, 2019 9:45 am
by SylvainM
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 !

Re: Cross-browser test

Posted: Fri Dec 13, 2019 10:16 am
by odklizec
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.