SelectorsHub / SelectorsHubIssues

11 stars 0 forks source link

Feature Request - An option to put escape character in xpath when someone copies based on user preference #69

Closed gauravkhuraana closed 1 year ago

gauravkhuraana commented 1 year ago

When we copy an xpath and paste it in IDE directly between a variable it automatically adds escape characters like \

//p[@class="_2gBcQ5"] <-- if i pastes this inside below,

webElement element = driver.findElement("")

there are chances the IDE will automatically adds \ and make it "//p[@class=\"_2gBcQ5\"] "

in some scenario it does not.. So would be great to give an option from where if we copy then escape character is already added in xpath. We can give this as an optional feature if people want to switch it on

image

selectorshubsanjay commented 1 year ago

This is expected and done by IDE. Concept- There can't be two set of same kinds of quote in an string argument.