You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Sleep and Set selenium speed not working in For Loop #4072
Hi, when i am using For loop for list created using excel sheet. then i am getting all the elements using log to console. But i am unable to apply any delay. Tried both set selenium speed and Sleep functions. All the values are printed in just 1-2 seconds.
*** Test Cases ***
market
@{list1}= GetListofShares
#set selenium speed 5
FOR ${i} IN ${list1}
LOG TO CONSOLE ${i}
#input text xpath://input[@list='stockSearch'] ${i}
sleep 20
END
Excel.py file:
import openpyxl
def GetListofShares():
wkb = openpyxl.load_workbook("C:/Users/Downloads/shares.xlsx")
sh = wkb["list"]
rows = sh.max_row
columns = sh.max_column
listednames = []
for i in range(2,rows+1):
listednames.append(sh.cell(i,2).value)
return listednames
Activity
prdpshrma255 commentedon Aug 29, 2021
My bad. I should have used : FOR ${i} IN @{list1}
Thanks. Closing the issue