Cross browser testing issue
Posted: Tue May 16, 2017 11:31 am
Hi,
I am trying to learn cross browser testing using Ranorex but having some difficulty in object identification. At the moment I am using IE v11, Chrome v58 and Firefox v53 to validate an error message shows in AUT. All three browsers are using different Xpath to identify this error message in AUT. Here is the path detail for same object under different browsers
1) IE
/dom[@domain='IPAddress']//div[#'GWTAPP_mainPanel']/div/div[2]/div/div/div/div[2]/div[1]/div/div/?/?/form[@method='POST']/div/?/?/div[@innertext~'^The\ form\ is\ not\ valid\ to\ ']
2) Chrome
/dom[@domain='IPAddress']//div[#'GWTAPP_mainPanel']/div/div[2]/div/div/div/div[2]/div[1]//form[@method='post']/div/?/?/div[@innertext~'^The\ form\ is\ not\ valid\ to\ ']
3) Firefox
/form[@title~'^APAS\ Admin\ -\ Login\ -\ -\ Mo']/container[@accessiblerole='Grouping']//container[@accessiblename='APAS Admin - Login -']/element[1]/table[@accessiblerole='Table']/row[@accessiblerole='Row']/?/?/table[@accessiblerole='Table']/row[4]//table[@accessiblerole='Table']/row[@accessiblename='AndPhone Login']/cell/element[@accessiblerole='None']/element[2]/element/element[2]//container[@accessiblename='Messages ']/?/?/text[@accessiblename~'^The\ form\ is\ not\ valid\ to\ ']
Having three different Xpath for same object, how can I test this object in AUT on different browsers?
Any help would be appreciated.
Regards,
I am trying to learn cross browser testing using Ranorex but having some difficulty in object identification. At the moment I am using IE v11, Chrome v58 and Firefox v53 to validate an error message shows in AUT. All three browsers are using different Xpath to identify this error message in AUT. Here is the path detail for same object under different browsers
1) IE
/dom[@domain='IPAddress']//div[#'GWTAPP_mainPanel']/div/div[2]/div/div/div/div[2]/div[1]/div/div/?/?/form[@method='POST']/div/?/?/div[@innertext~'^The\ form\ is\ not\ valid\ to\ ']
2) Chrome
/dom[@domain='IPAddress']//div[#'GWTAPP_mainPanel']/div/div[2]/div/div/div/div[2]/div[1]//form[@method='post']/div/?/?/div[@innertext~'^The\ form\ is\ not\ valid\ to\ ']
3) Firefox
/form[@title~'^APAS\ Admin\ -\ Login\ -\ -\ Mo']/container[@accessiblerole='Grouping']//container[@accessiblename='APAS Admin - Login -']/element[1]/table[@accessiblerole='Table']/row[@accessiblerole='Row']/?/?/table[@accessiblerole='Table']/row[4]//table[@accessiblerole='Table']/row[@accessiblename='AndPhone Login']/cell/element[@accessiblerole='None']/element[2]/element/element[2]//container[@accessiblename='Messages ']/?/?/text[@accessiblename~'^The\ form\ is\ not\ valid\ to\ ']
Having three different Xpath for same object, how can I test this object in AUT on different browsers?
Any help would be appreciated.
Regards,