- changed phones to S20 and Iphone 12

- speed test issue solved

Signed-off-by: Sushant Bawiskar <sushant.bawiskar@candelatech.com>
This commit is contained in:
sushant
2021-09-23 21:59:06 +05:30
committed by Sushant Bawiskar
parent bd7c97ebcf
commit 601b4f5703
2 changed files with 7 additions and 2 deletions

View File

@@ -596,7 +596,9 @@ def verifyUploadDownloadSpeed_android(request, setup_perfectoMobile, get_APToMob
try:
print("Click Search Button")
report.step_start("Click Search Button")
elelSearch = driver.find_element_by_xpath("//*[@class='aajZCb']/li[1]/div[1]")
elelSearch = driver.find_element_by_xpath("//*[@class='aajZCb']//*[@class='nz2CCf']/li[1]/div[2]")
# elelSearch = driver.find_element_by_xpath("//*[@class='aajZCb']/li[1]/div[1]")
# //*[@class="aajZCb"]//*[@class="nz2CCf"]/li[1]/div[2]
elelSearch.click()
except NoSuchElementException:
print("Search Drop Down not active...")
@@ -608,6 +610,7 @@ def verifyUploadDownloadSpeed_android(request, setup_perfectoMobile, get_APToMob
except NoSuchElementException:
print("Error in speed test element ", NoSuchElementException)
# allure.attach(name="Speed Test logs: ", body=str("Search Run Speed Test not active..." + NoSuchElementException))
return False
#Get upload/Download Speed
try:

View File

@@ -524,7 +524,8 @@ def verifyUploadDownloadSpeediOS(request, setup_perfectoMobile, get_APToMobileDe
try:
print("Click Search Button")
elelSearch = driver.find_element_by_xpath("//*[@class='aajZCb']/li[1]/div[1]")
# elelSearch = driver.find_element_by_xpath("//*[@class='aajZCb']/li[1]/div[1]")
elelSearch = driver.find_element_by_xpath("//*[@class='aajZCb']//*[@class='nz2CCf']/li[1]/div[2]")
elelSearch.click()
except NoSuchElementException:
currentResult = False
@@ -537,6 +538,7 @@ def verifyUploadDownloadSpeediOS(request, setup_perfectoMobile, get_APToMobileDe
except NoSuchElementException:
currentResult = False
print("Run Speed Test Button element not found")
return currentResult
#Get upload/Download Speed
try: