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

Asked by Nuwan chathuranga on 2017-06-19

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:
Sikuli Edit question
Assignee:
No assignee Edit question
Solved by:
masuo
Solved:
2017-06-20
Last query:
2017-06-20
Last reply:
2017-06-19
masuo (masuo-ohara) said : #1

 Selenium IDE? SikuliX IDE?

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

Nuwan chathuranga (ncsics) said : #3

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

Nuwan chathuranga (ncsics) said : #4

I will try this.Thanks a lot

Nuwan chathuranga (ncsics) said : #5

Thanks masuo, that solved my question.

Nuwan chathuranga (ncsics) said : #6

Thanks masuo, Thanks for the help.