diff options
author | Marcello Stanisci <marcello.stanisci@inria.fr> | 2016-05-23 15:35:54 +0200 |
---|---|---|
committer | Marcello Stanisci <marcello.stanisci@inria.fr> | 2016-05-23 15:35:54 +0200 |
commit | a96d9aa386f22dc770cc1f7d8be362e49544e9aa (patch) | |
tree | 2ce5ec3a445ce4c917e2b454c27f15665ce2323d | |
parent | 4bd7f6855df9fd08443d1bed681338cc7c4b89c7 (diff) |
addressing #4522
-rw-r--r-- | selenium/test.py | 6 |
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): |