Skip to content

Commit

Permalink
Fall back to implicit waits for travis
Browse files Browse the repository at this point in the history
  • Loading branch information
jpic committed Jan 28, 2014
1 parent 71a69a9 commit 7c8491a
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions autocomplete_light/tests/widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
from selenium.webdriver.common.keys import Keys
from selenium import webdriver
from selenium.webdriver.support import ui
from selenium.webdriver.common.by import By
from selenium.webdriver.support import expected_conditions as EC


if VERSION[0] == 1 and VERSION[1] < 7:
Expand Down Expand Up @@ -222,11 +220,10 @@ def setup_test_case(self):

def test_xhr_pending(self):
self.send_keys('ja')
ui.WebDriverWait(self.selenium, 15).until(EC.presence_of_element_located((By.CSS_SELECTOR,
'input.xhr-pending[name=%s-autocomplete]' % self.autocomplete_name)))

ui.WebDriverWait(self.selenium, 15).until(EC.presence_of_element_located((By.CSS_SELECTOR,
'input:not(.xhr-pending)[name=%s-autocomplete]' % self.autocomplete_name)))
self.selenium.find_element_by_css_selector(
'input[name=%s-autocomplete]' % self.autocomplete_name)
self.selenium.find_element_by_css_selector(
'input:not(.xhr-pending)[name=%s-autocomplete]' % self.autocomplete_name)


class SelectChoiceInEmptyFormTestCase(WidgetTestCase):
Expand Down

0 comments on commit 7c8491a

Please sign in to comment.