|
@@ -43,9 +43,9 @@ def test_adding_elements_with_async_await(screen: Screen):
|
|
with screen.implicitly_wait(10.0):
|
|
with screen.implicitly_wait(10.0):
|
|
screen.should_contain('A')
|
|
screen.should_contain('A')
|
|
screen.should_contain('B')
|
|
screen.should_contain('B')
|
|
- cA = screen.find_by_id(cardA)
|
|
|
|
|
|
+ cA = screen.find_element(cardA)
|
|
cA.find_element(By.XPATH, './/*[contains(text(), "A")]')
|
|
cA.find_element(By.XPATH, './/*[contains(text(), "A")]')
|
|
- cB = screen.find_by_id(cardB)
|
|
|
|
|
|
+ cB = screen.find_element(cardB)
|
|
cB.find_element(By.XPATH, './/*[contains(text(), "B")]')
|
|
cB.find_element(By.XPATH, './/*[contains(text(), "B")]')
|
|
|
|
|
|
|
|
|
|
@@ -129,7 +129,7 @@ def test_adding_elements_from_different_tasks(screen: Screen):
|
|
background_tasks.create(add_label2())
|
|
background_tasks.create(add_label2())
|
|
screen.should_contain('1')
|
|
screen.should_contain('1')
|
|
screen.should_contain('2')
|
|
screen.should_contain('2')
|
|
- c1 = screen.find_by_id(card1)
|
|
|
|
|
|
+ c1 = screen.find_element(card1)
|
|
c1.find_element(By.XPATH, './/*[contains(text(), "1")]')
|
|
c1.find_element(By.XPATH, './/*[contains(text(), "1")]')
|
|
- c2 = screen.find_by_id(card2)
|
|
|
|
|
|
+ c2 = screen.find_element(card2)
|
|
c2.find_element(By.XPATH, './/*[contains(text(), "2")]')
|
|
c2.find_element(By.XPATH, './/*[contains(text(), "2")]')
|