Jason преди 1 година
родител
ревизия
b5f36ec2fa
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      website_clickjobs/type-1/_clickjob0113.py

+ 1 - 1
website_clickjobs/type-1/_clickjob0113.py

@@ -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)