Support > Forums > OpenBots Studio > Edit xpath using "Native browser command"
I need to edit the xpath of a certain element in google chrome. However, in selenium it's only compatible up to version 100. Is there a way in the native browser that I can edit the xpath?
This forum has 317 topics, 687 replies, and was last updated 4 months ago by Nataly Alvarado...
Hi Jose Roberto das Neves Melo,
For Browser interaction we have 2 command packages available in Studio: Native Browser commands and Native Browser Legacy commands.
The Native Browser recorder spies the element and generates a tree-based selector. You can modify each parameter value within the selector tree generated and include variables or wildcard "*" (as seen in the guide). In addition, you can validate your selectors by using the UI Element Validator within the command (to validate a selector containing a variable, initialize the variable's value in the variable manager)
In the case of Native Browser legacy commands, selectors are supported as expected by xpath standards (similar to Selenium commands).For example, you could use a contains functions as: "//a[contains(text(),'Keyword')]" The Native Browser Legacy commands can be installed from package manager -> Gallery
You are not authorized to reply, please click here to login and add your reply to this topic.