Chrome objects not identified for cross browser testing
Posted: Fri Apr 08, 2016 5:43 pm
I'm attempting to create a simple automated scripts that works on Firefox, IE, and Chrome. I got objects identified originally in Firefox to work in IE with only a little tweaking. Ex:
/dom[@domain='IP:Port']//section[#'content']/?/?/section//form[@name='loginForm']/div[2]/?/?/?/input[@type='checkbox']
However, the same object on the same page in Chrome gives me:
/form[@title~'^X\ X:\ Disclaimer\ -\ Go']/element[@controlid='-532377376']/container[@accessiblename='X X: Disclaimer']/container/container[@accessiblerole='Grouping']//checkbox[@accessiblerole='CheckButton']
With the Xpath completely different the same object in Chrome isn't seen in the other browsers, and vice versa.
Here's what I'm running on, and what I've done so far to get Chrome objects identified:
Ranorex 5.4.6 (Evaluation)
Ranorex Chrome extension 1.0.10
Chrome version 49.0.2623.112 m (64-bit)
Windows Server 2012 R2 Standard
I turned on global accessibility mode in Chrome.
I added the following flag to my Chrome.exe shortcut:
--disable-web-security --user-data-dir="C:\Users\gssuser\Documents\ChromeTestData"
Am missing something? Can anyone please help me get Chrome objects to be identified like they are in FF and IE?
/dom[@domain='IP:Port']//section[#'content']/?/?/section//form[@name='loginForm']/div[2]/?/?/?/input[@type='checkbox']
However, the same object on the same page in Chrome gives me:
/form[@title~'^X\ X:\ Disclaimer\ -\ Go']/element[@controlid='-532377376']/container[@accessiblename='X X: Disclaimer']/container/container[@accessiblerole='Grouping']//checkbox[@accessiblerole='CheckButton']
With the Xpath completely different the same object in Chrome isn't seen in the other browsers, and vice versa.
Here's what I'm running on, and what I've done so far to get Chrome objects identified:
Ranorex 5.4.6 (Evaluation)
Ranorex Chrome extension 1.0.10
Chrome version 49.0.2623.112 m (64-bit)
Windows Server 2012 R2 Standard
I turned on global accessibility mode in Chrome.
I added the following flag to my Chrome.exe shortcut:
--disable-web-security --user-data-dir="C:\Users\gssuser\Documents\ChromeTestData"
Am missing something? Can anyone please help me get Chrome objects to be identified like they are in FF and IE?