MCPcopy Index your code
hub / github.com/seleniumbase/SeleniumBase / normalize_text

Function normalize_text

sbase/steps.py:4–7  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

2
3
4def normalize_text(text):
5 text = text.replace("\\\\", "\\").replace("\\t", "\t").replace("\\n", "\n")
6 text = text.replace('\\"', '"').replace("\\'", "'")
7 return text
8
9
10@step("Open '{url}'")

Callers 15

type_textFunction · 0.85
add_textFunction · 0.85
assert_text_in_elementFunction · 0.85
assert_textFunction · 0.85
assert_exact_textFunction · 0.85
save_screenshot_asFunction · 0.85
set_valueFunction · 0.85
select_option_by_textFunction · 0.85
select_option_by_optionFunction · 0.85
wait_for_text_in_elementFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected