not tested enough apparently
This commit is contained in:
parent
9549a6dea3
commit
49b691d736
2
V6.py
2
V6.py
|
@ -165,6 +165,8 @@ def do_poll():
|
|||
try:
|
||||
answer_elem.click()
|
||||
except exceptions.ElementNotInteractableException:
|
||||
warning("element not clickable. Waiting a bit and retrying.")
|
||||
custom_sleep(uniform(2, 2.5))
|
||||
driver.execute_script("arguments[0].click();", answer_elem)
|
||||
custom_sleep(uniform(2, 2.5))
|
||||
except Exception as err:
|
||||
|
|
|
@ -30,7 +30,7 @@ class ColoredFormatter(logging.Formatter):
|
|||
|
||||
# Set up the root logger
|
||||
root_logger = logging.getLogger(__name__)
|
||||
root_logger.setLevel(logging.DEBUG)
|
||||
root_logger.setLevel(logging.INFO)
|
||||
|
||||
# Create a console handler and set the formatter
|
||||
ch = logging.StreamHandler()
|
||||
|
|
Loading…
Reference in New Issue