- Right click on an element on a web page
- Click "Open Link in New Tab" on the context menu.
How can I get the step to run on all browsers?
Thanks!
The validation failure message states:/tooltip[@text='Help']
What can I do, to ensure this validates correctly in Firefox?Element for item 'Self' does not exist (Failed to find item 'Dashboard_IERepository.Help_Tooltip.Self'. No element found for path '/tooltip[@text='Help']' within 30s.).
Code: Select all
?/?/menuitem[@accessiblename='Open in new tab']
Code: Select all
.//contextmenu[@accessiblerole='MenuPopup']/menuitem[@accessiblename='Open link in new tab']
Code: Select all
?/?/menuitem[@accessiblename='Open Link in New Tab']
Thanks Markus, I will try that.A possible workaround to open links in a new tab would be to use the middle mouse button or the Ctrl-key in combination with left mouse-button.
I haven't used regular expressions before. Is there any particular area of regular expressions that I should look at, to help with the tooltip issue?Also the tool tip is shown different in the web browsers.
In order to run your cross browser test successfully I’d recommend adapting the path to be suitable for all browser versions using regular expressions.