How to type a list values literately in same web form.

Asked by Nuwan chathuranga

I need to fill a web form using list values.For that, I used the below code.When executing the 4th line system will generate an error.I used Selenium IDE to test the script.

lis1 = ["ABC", "DEF", "GHI"]
for n in range(lis1):
    type(Key.ENTER)
    type(lis1)
    type(Key.ENTER)
    sleep(2)
    type(Key.TAB)
    type(Key.TAB)
    type(Key.ENTER)
    type(Key.TAB)
    type("100")
    sleep(1)
    type(Key.TAB)
    type(Key.TAB)
    type(Key.TAB)
    type(Key.TAB)
    type("100")
    sleep(1)
    type(Key.TAB)
    type(Key.TAB)
    type(Key.TAB)
    type(Key.TAB)
    type(Key.TAB)
    type(Key.TAB)
    sleep(1)

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
masuo
Solved:
Last query:
Last reply:
Revision history for this message
masuo (masuo-ohara) said :
#1

 Selenium IDE? SikuliX IDE?

Revision history for this message
Best masuo (masuo-ohara) said :
#2

If SikuliX IDE

lis1 = ["ABC", "DEF", "GHI"]
for n in range(len(lis1)): # <--- modified
    type(Key.ENTER)
    type(lis1[n]) # <--- modified

Revision history for this message
Nuwan chathuranga (ncsics) said :
#3

Sorry for the mistake. Not the selenium IDE, I use SikuliX IDE.

Revision history for this message
Nuwan chathuranga (ncsics) said :
#4

I will try this.Thanks a lot

Revision history for this message
Nuwan chathuranga (ncsics) said :
#5

Thanks masuo, that solved my question.

Revision history for this message
Nuwan chathuranga (ncsics) said :
#6

Thanks masuo, Thanks for the help.