from selenium import webdriver from selenium.webdriver.common.keys import Keys import time driver = webdriver.Firefox() driver.get("http://50.211.199.148:3002/#/search/documents") time.sleep(2) driver.implicitly_wait(2) # driver.find_element_by_id("nav-search").send_keys("Selenium") enter_text = driver.find_element( "xpath", "//input[@placeholder='Example: Apple, CUDA']" ).send_keys("Apple") time.sleep(2) driver.implicitly_wait(2) enter_button_search = driver.find_element( "xpath", "(//button[@class='btn btn-info'])[2]" ).click()