How to send text to the search field through Selenium and Python
问题 I am trying to pass arguments to a search text in a HTML code using Selenium in Python: I am working on the following HTML code: </form><form class="search-box-inner"> <div class="input-container"> <input type="text" class="typeahead search-box-input left" autocomplete="off" placeholder="Search ratings, research, analysts, and more..." maxlength="900"></div> </form> The code does not have id or name. It has elements by class only. I tried the following self.driver.find_elements_by_class_name(