aboutsummaryrefslogtreecommitdiff
path: root/selenium
diff options
context:
space:
mode:
authorMarcello Stanisci <marcello.stanisci@inria.fr>2016-05-23 15:35:54 +0200
committerMarcello Stanisci <marcello.stanisci@inria.fr>2016-05-23 15:35:54 +0200
commita96d9aa386f22dc770cc1f7d8be362e49544e9aa (patch)
tree2ce5ec3a445ce4c917e2b454c27f15665ce2323d /selenium
parent4bd7f6855df9fd08443d1bed681338cc7c4b89c7 (diff)
downloadwallet-core-a96d9aa386f22dc770cc1f7d8be362e49544e9aa.tar.gz
wallet-core-a96d9aa386f22dc770cc1f7d8be362e49544e9aa.tar.bz2
wallet-core-a96d9aa386f22dc770cc1f7d8be362e49544e9aa.zip
addressing #4522
Diffstat (limited to 'selenium')
-rw-r--r--selenium/test.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/selenium/test.py b/selenium/test.py
index c5712dd9e..ad5146a92 100644
--- a/selenium/test.py
+++ b/selenium/test.py
@@ -123,6 +123,12 @@ def buy_article(client):
logger.error('Could not confirm payment on blog')
sys.exit(1)
confirm_pay.click()
+ # check here for good elements
+ try:
+ client.find_element(By.XPATH, "//h1[@class='book-title']")
+ except NoSuchElementException:
+ logger.error("Article not correctly bought")
+ sys.exit(1)
def register(client):