first change to also click Accept Button in English if may come for js spidering functionality
This commit is contained in:
parent
0808e5a42d
commit
a9c2346c04
1 changed files with 6 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue