sample-code: fix python sample
MODIFY
.travis.yml
.travis.yml
@@ -47,7 +47,7 @@ jobs:
if: branch = master AND type != pull_request
os: linux
language: python
- python: "2.7"
+ python: "3.6"
env:
- SAUCE_LABS=1
before_install:

MODIFY
sample-code/python/test/test_ios_selectors.py
sample-code/python/test/test_ios_selectors.py
@@ -48,4 +48,4 @@ class TestIOSSelectors():
def test_should_find_elements_by_xpath(self, driver):
action_bar_container_elements = driver.find_elements_by_xpath('//XCUIElementTypeWindow//XCUIElementTypeButton')
- assert 8 == len(action_bar_container_elements)
+ assert 7 <= len(action_bar_container_elements) <= 8

sample-code: fix python sample (#13107)