No keyword with name ' =' found

2,004 views
Skip to first unread message

jloyzaga

unread,
Jul 21, 2016, 6:14:15 PM7/21/16
to robotframework-users
\   Run Keyword If  ${present}  ${gettextnext}=  Get Text  xpath=//*[@id='content']/div[3]/div/section[1]/div[2]

What is wrong with this?

Hélio Guilherme

unread,
Jul 21, 2016, 6:27:07 PM7/21/16
to robotframework-users
Should be something like this:
${gettextnext}=    Run Keyword If  ${present}    Get Text  xpath=//*[@id='content']/div[3]/div/section[1]/div[2]

See the documentation at http://robotframework.org/robotframework/latest/libraries/BuiltIn.html#Run%20Keyword%20If

On Thu, Jul 21, 2016 at 11:14 PM, jloyzaga <jloy...@gmail.com> wrote:
\   Run Keyword If  ${present}  ${gettextnext}=  Get Text  xpath=//*[@id='content']/div[3]/div/section[1]/div[2]

What is wrong with this?

--
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 https://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.

jloyzaga

unread,
Jul 21, 2016, 7:11:24 PM7/21/16
to robotframework-users
tried this   

\   ${gettextnext}=  Run Keyword If ${present} Get Text  xpath=//*[@id='content']/div[3]/div/section[1]/div[2]

got this  
No keyword with name 'Run Keyword If ${present} Get Text' found.

did I not get the syntax right?

On Friday, 22 July 2016 08:27:07 UTC+10, Hélio Guilherme wrote:
Should be something like this:
${gettextnext}=    Run Keyword If  ${present}    Get Text  xpath=//*[@id='content']/div[3]/div/section[1]/div[2]

See the documentation at http://robotframework.org/robotframework/latest/libraries/BuiltIn.html#Run%20Keyword%20If
On Thu, Jul 21, 2016 at 11:14 PM, jloyzaga <jloy...@gmail.com> wrote:
\   Run Keyword If  ${present}  ${gettextnext}=  Get Text  xpath=//*[@id='content']/div[3]/div/section[1]/div[2]

What is wrong with this?

--
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-users+unsub...@googlegroups.com.

Hélio Guilherme

unread,
Jul 21, 2016, 7:25:56 PM7/21/16
to robotframework-users
You are having problems with spaces. Must be 4 spaces before ${present} (and after).
I assume that ${present} contains the python's value True. It is possible to use "${present}" == "True".

I recommend to install and use RIDE to avoid formatting errors (and having keyword documentation easily accessible with CTRL+SPACE). 

jloyzaga

unread,
Jul 21, 2016, 7:39:57 PM7/21/16
to robotframework-users
I'm using pycharm 

jloyzaga

unread,
Jul 21, 2016, 9:38:07 PM7/21/16
to robotframework-users
is it spaces again for this?

\   Run keyword if    '»' in '''${gettextnext}'''    ${INDEXa}=     Set Variable     1

No keyword with name '1=' found.

On Friday, 22 July 2016 09:25:56 UTC+10, Hélio Guilherme wrote:

dmitriy...@gmail.com

unread,
Jul 21, 2016, 9:53:38 PM7/21/16
to jloy...@gmail.com, robotframework-users
If you are using pycharm that does not mean that format is no applicable for the test files. There should be 2 or more spaces between keyword and arguments.  

Thanks,
Dmitriy 
--
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.

jloyzaga

unread,
Jul 21, 2016, 10:01:07 PM7/21/16
to robotframework-users, jloy...@gmail.com
there were 2 why 4?
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsub...@googlegroups.com.

Tatu Aalto

unread,
Jul 22, 2016, 1:44:59 AM7/22/16
to Joe Loyzaga, robotframework-users

Ugh

Reading the user guide about test data format should bring more light to the problem: http://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html#plain-text-format

-Tatu


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 https://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.

--
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.

Krzysztof Jozefowicz

unread,
Jul 22, 2016, 3:08:58 AM7/22/16
to robotframework-users


W dniu piątek, 22 lipca 2016 01:39:57 UTC+2 użytkownik jloyzaga napisał:
I'm using pycharm 


Hi

If you need Python dev IDE together with Robot IDE you can setup RED (based on Eclipse) with PyDev
https://github.com/nokia/RED

br..
K

Bryan Oakley

unread,
Jul 22, 2016, 8:20:59 AM7/22/16
to jloy...@gmail.com, robotframework-users
"run keyword if" requires a *keyword* after the expression. "${INDEXa}=" is not a keyword. If you want to assign a variable, use "Set variable if":

${INDEXa}=    Set keyword if    '»' in '''${gettextnext}'''   1

note: there are two or more spaces after "${INDEXa}=", "Set keyword if", and the expression. 

--
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.
Reply all
Reply to author
Forward
0 new messages