S
describe({ title: 'test title', testId: 42 }, () ={})
и айдишник можно будет достатьSize: a a a
S
describe({ title: 'test title', testId: 42 }, () ={})
и айдишник можно будет достатьS
СБ
IF
M
IF
M
IF
СБ
# Preconditions
base_url='https://example.com/'
fixture_text='coordination or asking'
# load framework
describe () {
print "describe '$1'"
}
context () {
print "\tcontext $1"
}
it () {
print "\t\tit $1"
}
# test
describe "${base_url}"
context "when open '${base_url}'"
it "then '${fixture_text}' is exist"
curl --silent --request GET "${base_url}" | \
grep --count "${fixture_text}" | \
read message;
if test "${message}" -gt 0
then print 'pass'
else print 'failed'
fi
IF
# Preconditions
base_url='https://example.com/'
fixture_text='coordination or asking'
# load framework
describe () {
print "describe '$1'"
}
context () {
print "\tcontext $1"
}
it () {
print "\t\tit $1"
}
# test
describe "${base_url}"
context "when open '${base_url}'"
it "then '${fixture_text}' is exist"
curl --silent --request GET "${base_url}" | \
grep --count "${fixture_text}" | \
read message;
if test "${message}" -gt 0
then print 'pass'
else print 'failed'
fi
AK
comments_list = driver.find_elements_by_id('com.myapp:id/a2j')
driver.scroll(comments_list[2], comments_list[1])
Однако, во время выполнения цикла(по разному бывает номер цикла), получаю такую ошибку:driver.scroll(comments_list[2], comments_list[1])Насколько я понял: список пуст. Посмотрел в логе Appium:
IndexError: list index out of range
[HTTP] {"using":"id","value":"com.myapp:id/a2j"}value пуст. Хотя на экране смартфона есть эти элементы.
[W3C (fd151263)] Calling AppiumDriver.findElements() with args: ["id","com.myapp:id/a2j","fd151263-83ce-4e48-b566-5e316e4e92ad"]
[BaseDriver] Valid locator strategies for this request: xpath, id, class name, accessibility id, -android uiautomator
[BaseDriver] Waiting up to 0 ms for condition
[WD Proxy] Matched '/elements' to command name 'findElements'
[WD Proxy] Proxying [POST /elements] to [POST http://localhost:8206/wd/hub/session/12079d98-c423-4648-94fe-16f74bdc933e/elements] with body: {"strategy":"id","selector":"com.myapp:id/a2j","context":"","multiple":true}
[WD Proxy] Got response with status 200: {"sessionId":"12079d98-c423-4648-94fe-16f74bdc933e","value":[]}
[W3C (fd151263)] Responding to client with driver.findElements() result: []
[HTTP] <-- POST /wd/hub/session/fd151263-83ce-4e48-b566-5e316e4e92ad/elements 200 274 ms - 12
Y
comments_list = driver.find_elements_by_id('com.myapp:id/a2j')
driver.scroll(comments_list[2], comments_list[1])
Однако, во время выполнения цикла(по разному бывает номер цикла), получаю такую ошибку:driver.scroll(comments_list[2], comments_list[1])Насколько я понял: список пуст. Посмотрел в логе Appium:
IndexError: list index out of range
[HTTP] {"using":"id","value":"com.myapp:id/a2j"}value пуст. Хотя на экране смартфона есть эти элементы.
[W3C (fd151263)] Calling AppiumDriver.findElements() with args: ["id","com.myapp:id/a2j","fd151263-83ce-4e48-b566-5e316e4e92ad"]
[BaseDriver] Valid locator strategies for this request: xpath, id, class name, accessibility id, -android uiautomator
[BaseDriver] Waiting up to 0 ms for condition
[WD Proxy] Matched '/elements' to command name 'findElements'
[WD Proxy] Proxying [POST /elements] to [POST http://localhost:8206/wd/hub/session/12079d98-c423-4648-94fe-16f74bdc933e/elements] with body: {"strategy":"id","selector":"com.myapp:id/a2j","context":"","multiple":true}
[WD Proxy] Got response with status 200: {"sessionId":"12079d98-c423-4648-94fe-16f74bdc933e","value":[]}
[W3C (fd151263)] Responding to client with driver.findElements() result: []
[HTTP] <-- POST /wd/hub/session/fd151263-83ce-4e48-b566-5e316e4e92ad/elements 200 274 ms - 12
AH
Y
S
S
M
comments_list = driver.find_elements_by_id('com.myapp:id/a2j')
driver.scroll(comments_list[2], comments_list[1])
Однако, во время выполнения цикла(по разному бывает номер цикла), получаю такую ошибку:driver.scroll(comments_list[2], comments_list[1])Насколько я понял: список пуст. Посмотрел в логе Appium:
IndexError: list index out of range
[HTTP] {"using":"id","value":"com.myapp:id/a2j"}value пуст. Хотя на экране смартфона есть эти элементы.
[W3C (fd151263)] Calling AppiumDriver.findElements() with args: ["id","com.myapp:id/a2j","fd151263-83ce-4e48-b566-5e316e4e92ad"]
[BaseDriver] Valid locator strategies for this request: xpath, id, class name, accessibility id, -android uiautomator
[BaseDriver] Waiting up to 0 ms for condition
[WD Proxy] Matched '/elements' to command name 'findElements'
[WD Proxy] Proxying [POST /elements] to [POST http://localhost:8206/wd/hub/session/12079d98-c423-4648-94fe-16f74bdc933e/elements] with body: {"strategy":"id","selector":"com.myapp:id/a2j","context":"","multiple":true}
[WD Proxy] Got response with status 200: {"sessionId":"12079d98-c423-4648-94fe-16f74bdc933e","value":[]}
[W3C (fd151263)] Responding to client with driver.findElements() result: []
[HTTP] <-- POST /wd/hub/session/fd151263-83ce-4e48-b566-5e316e4e92ad/elements 200 274 ms - 12
AH
M
AH