diff options
Diffstat (limited to 'selenium/test.py')
-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): |