We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d6acda7 commit c129dc9Copy full SHA for c129dc9
javascript/node/selenium-webdriver/lib/by.js
@@ -429,4 +429,5 @@ module.exports = {
429
withTagName: withTagName,
430
locateWith: locateWith,
431
checkedLocator: check,
432
+ escapeCss: escapeCss
433
}
javascript/node/selenium-webdriver/lib/webdriver.js
@@ -1472,7 +1472,7 @@ class WebDriver {
1472
if (params.method === 'Runtime.bindingCalled') {
1473
let payload = JSON.parse(params['params']['payload'])
1474
let elements = await this.findElements({
1475
- css: '*[data-__webdriver_id=' + payload['target'],
+ css: '*[data-__webdriver_id=' + by.escapeCss(payload['target']) + ']',
1476
})
1477
1478
if (elements.length === 0) {
0 commit comments