|
@@ -53,7 +53,7 @@ def process_query(domain, target_id, url, query):
|
|
# elmts=driver.find_elements_by_xpath("//div[@class='yuRUbf']/a")
|
|
# elmts=driver.find_elements_by_xpath("//div[@class='yuRUbf']/a")
|
|
# ABOVE METHOD IS DEPRECATED STARTING SELENIUM 4.3.0, USE THIS
|
|
# ABOVE METHOD IS DEPRECATED STARTING SELENIUM 4.3.0, USE THIS
|
|
#
|
|
#
|
|
- elmt = driver.find_element(By.XPATH, "//input[@name='q']")
|
|
|
|
|
|
+ elmt = driver.find_element(By.XPATH, "//input[@textarea='q']")
|
|
time.sleep(1)
|
|
time.sleep(1)
|
|
|
|
|
|
elmt.send_keys(query)
|
|
elmt.send_keys(query)
|