Getting error " FOR loop contains no keywords"

1,938 views
Skip to first unread message

Dev

unread,
Jan 14, 2014, 3:40:39 PM1/14/14
to robotframe...@googlegroups.com
Hi Guys,

Not sure what mistake I am doing here the scenario is abcmainui is the main frame which contains two other frames i.e workarea_frame  $  Navigation_Frame, I just want to select the frame by using for loop and want do some operations on that particular frame.

Below is my code:

:FOR          ${Frames}                 IN          abcmainui          workarea_frame    Navigation_Frame
                  Run Keyword If         ''${Frames}'== 'workarea_frame'          Exit For Loop                       
                  Select Frame            ${Frames}
                  Current Frame Contains         ${abcde} 




Below is the error I am getting

FOR: ${Frames} IN [ abcmainui | workarea_frame ]  
Start / End / Elapsed: 20140115 01:57:14.110 / 20140115 01:57:14.110 / 00:00:00.000
01:57:14.110 FAIL  
FOR loop contains no keywords.

Tatu Aalto

unread,
Jan 15, 2014, 3:03:27 AM1/15/14
to devgu...@gmail.com, robotframe...@googlegroups.com
Ugh

You syntax is not correct, you need escape the indented cell with backslash, see the user guide for more details [1]

-Tatu
[1] http://robotframework.googlecode.com/hg/doc/userguide/RobotFrameworkUserGuide.html?r=2.8.3#normal-for-loop
--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-u...@googlegroups.com.
To post to this group, send email to robotframe...@googlegroups.com.
Visit this group at http://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages