I'm trying to locate an element by class_name but i'm getting an error "no such element"
When i'm trying to locate the same element by XPATH it works
Why it fails to locate the element by his class_name?
this are the 2 locators that i tried:
1: txt_company_name = (By.CLASS_NAME, 'crm-entity-widget-content-input crm-entity-widget-content-search-input')
2: txt_company_name = (By.XPATH, '//*[@class="crm-entity-widget-content-input crm-entity-widget-content-search-input"]')
This is the HTML:
<input type="text" placeholder="Company name, phone or email" class="crm-entity-widget-content-input crm-entity-widget-content-search-input" autocomplete="nope">