first change to also click Accept Button in English if may come for js spidering functionality

This commit is contained in:
alpcentaur 2024-03-05 14:50:34 +00:00
parent 0808e5a42d
commit a9c2346c04

View file

@ -174,6 +174,12 @@ class fdb_spider(object):
except Exception as e:
print(e, 'no cookies to accept..')
pass
try:
accept_button = driver.find_element("xpath","//button[contains(text(), 'Accept')]")
accept_button.click()
except Exception as e:
print(e, 'no cookies to accept..')
pass
for i in range(len(entry_jsiteration_var_list)):
time.sleep(1)