aboutsummaryrefslogtreecommitdiff
path: root/selenium
diff options
context:
space:
mode:
authorMarcello Stanisci <marcello.stanisci@inria.fr>2017-02-20 13:24:12 +0100
committerMarcello Stanisci <marcello.stanisci@inria.fr>2017-02-20 13:24:12 +0100
commit5ad34d8dfdb306771126c88b26211ec3f751f6b9 (patch)
tree9f705178b4768c8578b20dbb328993187b39b11c /selenium
parent93e3d52735b35a0b5405ed774a5bf0dbc8d8e8f2 (diff)
More logging in selenium test
Diffstat (limited to 'selenium')
-rw-r--r--selenium/withdraw_buy.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/selenium/withdraw_buy.py b/selenium/withdraw_buy.py
index cc1f71eba..fa6f29118 100644
--- a/selenium/withdraw_buy.py
+++ b/selenium/withdraw_buy.py
@@ -137,11 +137,17 @@ def buy_article(client):
# did NOT work.
actions = ActionChains(client)
time.sleep(2)
+ logger.info("Batching:..")
+ logger.info("..scroll page down")
actions.move_to_element(further_teaser)
time.sleep(2)
+ logger.info("..focus on article")
actions.move_to_element(teaser)
time.sleep(2)
+ logger.info("..click on article")
actions.click(teaser)
+ time.sleep(2)
+ logger.info("Performing batched actions")
actions.perform()
except (NoSuchElementException, TimeoutException):
logger.error('Could not choose "Foreword" chapter on blog')
@@ -150,6 +156,7 @@ def buy_article(client):
time.sleep(1)
try:
confirm_pay = wait.until(EC.element_to_be_clickable((By.XPATH, "//button[@class='accept']")))
+ logger.info("Pay button turned clickable")
except TimeoutException:
logger.error('Could not confirm payment on blog')
sys.exit(1)