mirror of
https://github.com/Telecominfraproject/wlan-testing.git
synced 2025-12-26 23:47:19 +00:00
Added Continue botton click code patch in Ios lib for speed test
Signed-off-by: haricharan-jaka <haricharan.jaka@candelatech.com>
This commit is contained in:
@@ -3613,9 +3613,16 @@ def return_upload_download_speed_iOS(request, setup_perfectoMobile, get_APToMobi
|
||||
return downloadSpeed, uploadSpeed
|
||||
|
||||
def ookla_speed_test_iOS(request, setup_perfectoMobile, get_APToMobileDevice_data):
|
||||
report = setup_perfectoMobile[1]
|
||||
driver = setup_perfectoMobile[0]
|
||||
driver.switch_to.context('NATIVE_APP')
|
||||
openApp( 'com.ookla.speedtest', setup_perfectoMobile)
|
||||
openApp('com.ookla.speedtest', setup_perfectoMobile)
|
||||
try:
|
||||
report.step_start("Checking for continue")
|
||||
WebDriverWait(driver, 20).until(
|
||||
EC.presence_of_element_located((MobileBy.XPATH, "//*[@label='Continue']"))).click()
|
||||
except:
|
||||
print("Unable to see Continue permission")
|
||||
try:
|
||||
WebDriverWait(driver, 20).until(
|
||||
EC.presence_of_element_located((MobileBy.XPATH, "//*[@label='GO']"))).click()
|
||||
|
||||
Reference in New Issue
Block a user