module Playwright::LocatorUtils

def escape_for_attribute_selector(text, exact)

Parameters:
  • text (String) --
def escape_for_attribute_selector(text, exact)
: this should actually be
scape(value).replace(/\\ /g, ' ')
ver, our attribute selectors do not conform to CSS parsing spec,
e escape them differently.
= text.gsub(/\\/) { "\\\\" }.gsub(/["]/, '\\"')
ct
{_text}\""
{_text}\"i"