HTML Code for the text bar is the following :
<input data-v-0401fc16="" type="text" placeholder="Choose company" class="search_in">
CSS for the bar is as follows, so I also tried to put in the [data-v-0401fc16] in order to get the element by class name.
.search_in[data-v-0401fc16] {
width: 100vw;
height: 34px;
background: none;
border: none;
outline: none;
color: #003a5d;
font-size: 18px;
cursor: pointer;
}
How do I get send keys to the bar, I am unable to do so using the following :
search = driver.find_element_by_class_name("search_in[data-v-0401fc16]")
search.send_keys("123")
The error I get using this method is as follows. I am not able to get the textbar element and unable to input text in it.
selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"css selector","selector":".search_in[data-v-0401fc16]"}