Hej, mam pewien problem próbuje zautomatyzować testy pewnej strony
pobieram string z xpatha text: "↵ ↵ Sign out↵ "
strip nie działa
re.sub( ' ', '', h1 )
re.sub( '/t', ' ',h1 )
re.sub('/n','',h1)
też nie. Jakiś pomysł jak to sprawdzić?
0
2
Spróbuj .splitlines()
: https://www.programiz.com/python-programming/methods/string/splitlines