Skip to content

Commit

Permalink
sleeeeeepy
Browse files Browse the repository at this point in the history
  • Loading branch information
ericderegt committed May 2, 2018
1 parent 1df3779 commit 0ab0b77
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions features/steps/order_steps.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions
from app import server
import time

WAIT_SECONDS = 120
BASE_URL = getenv('BASE_URL', 'http://localhost:5000/')
Expand Down Expand Up @@ -83,6 +84,7 @@ def step_impl(context, button):
button_id = button.lower() + '-btn'

if button == "retrieve":
time.sleep(5)
element = context.driver.find_element_by_id('order_id').text

found = WebDriverWait(context.driver, WAIT_SECONDS).until(
Expand Down Expand Up @@ -130,6 +132,7 @@ def step_impl(context, button):
button_id = button.lower() + '-btn-item'

if button == "retrieve":
time.sleep(5)
element = context.driver.find_element_by_id('item_id').text

found = WebDriverWait(context.driver, WAIT_SECONDS).until(
Expand Down

0 comments on commit 0ab0b77

Please sign in to comment.