|
@@ -70,12 +70,11 @@ def process_query(domain, target_id, brands, query):
|
|
|
return 444
|
|
|
|
|
|
try: #in case there are duplicates...
|
|
|
- clickmore=driver.find_elements("xpath","//p[@class='ofr']/a")
|
|
|
- webdriver.ActionChains(driver).move_to_element(el).perform()
|
|
|
- webdriver.ActionChains(driver).move_to_element(el).click().perform()
|
|
|
+ clickmore=driver.find_element("xpath","//p[@id='ofr']").find_element(By.TAG_NAME, "a")
|
|
|
+ webdriver.ActionChains(driver).move_to_element(clickmore).perform()
|
|
|
+ webdriver.ActionChains(driver).move_to_element(clickmore).click().perform()
|
|
|
except:
|
|
|
pass
|
|
|
-
|
|
|
elmts=driver.find_elements("xpath","//div[@class='yuRUbf']/a")
|
|
|
|
|
|
targets=[]
|