I’m trying to locate a button element:
<button rpl="" class="login w-100
button-large px-[var(--rem14)]
button-brand
items-center justify-center
button inline-flex " type="button">
I tried locating it by the class name but when I copied it using inspect element in the browser it was formatted with spaces and 3 line breaks like so:
login w-100
button-large px-[var(--rem14)]
button-brand
items-center justify-center
button inline-flex
I tried the following without the line breaks but it failed:
button = wait.until(EC.presence_of_element_located((By.CLASS_NAME, ‘login w-100 button-large px-[var(-rem14)] button-brand items-center justify-center button inline-flex’)))
How do I correctly specify the class name?
rickw is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.