commit a96d9aa386f22dc770cc1f7d8be362e49544e9aa parent 4bd7f6855df9fd08443d1bed681338cc7c4b89c7 Author: Marcello Stanisci <marcello.stanisci@inria.fr> Date: Mon, 23 May 2016 15:35:54 +0200 addressing #4522 Diffstat:
| M | selenium/test.py | | | 6 | ++++++ |
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git 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):