Selenium Forum: Functional And Regression Testing Tool.
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Search
Display results as :
Advanced Search
Latest topics
AEM Training | Free Online DemoWed Apr 21, 2021 5:45 pmazharuddin
c# PageFactory - issue initializing elementsFri Nov 01, 2019 8:40 pmthegoatboy
Selenium making automatic connection to random urlsMon Jul 08, 2019 12:58 pmrepairtechsolutions1
How can we design the custom framework in Selenium RCMon Jun 24, 2019 2:26 pmrandybonnettes
What are the new features in Selenium 3.0Tue Jun 18, 2019 5:37 pmpappyvicky
What are you using Selenium for? Fri Apr 12, 2019 3:52 amzhl
LIMITATIONS OF SELENIUMWed Apr 10, 2019 11:23 amswara
Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

Go down
avatar
sdirkx
Posts : 3
Join date : 2013-02-12

unknown command "if"?! Empty unknown command "if"?!

Tue Feb 12, 2013 4:00 pm
I created a regression set with Selenium IDE and that works fine now, but now I'm doing so knowledge transfer to a colleague and the following happened:

The versions we BOTH use:
-Firefox 13.0.1 (no possibility to update this to a more recent version at the moment)
-Selenium 1.8.1 (according to the Selenium releases notes I choose this version because this was the first with official support for Firefox 13. Nevertheless, I also used Selenium 1.6 with Firefox 13 and that also worked).

Then, when I try to execute the regression set on the PC of my colleague, I get an error: "Unknown command: if". How is it possible that Selenium is not able to recognize/execute the "if"-command?!

To able to find a similar problem of solution by using Google Search, so I hope to get some answers here.

Thanks in advance!

Regards,

Steffen
avatar
ccox
Master
Master
Posts : 205
Join date : 2012-01-06
Age : 38
Location : Denver, CO

unknown command "if"?! Empty Re: unknown command "if"?!

Tue Feb 12, 2013 10:19 pm
There is no "if" command built into Selenium IDE. There is a gotoIf command that is available through a commonly used user-extension file. If you are using the user-extension file with the "if" statement in it, and your colleague does not have this extension file, you will get the error you are describing.

Hopefully that makes sense.
avatar
sdirkx
Posts : 3
Join date : 2013-02-12

unknown command "if"?! Empty Re: unknown command "if"?!

Tue Feb 12, 2013 10:54 pm
OK, that probably helps! Then I need to also install the other plugins that I use. My assumption was that "if" was so basic, that it had to be in the 'core' of the Selenium IDE plugin.

I also have:
-Selenium SEL blocks
-File logging
-Highlight Elements
-Power Debugger
-Stored variables
-Favorites
-Log Search Bar

Any idea where the "if"-command is incorporated in?

Will test tomorrow...
avatar
ccox
Master
Master
Posts : 205
Join date : 2012-01-06
Age : 38
Location : Denver, CO

unknown command "if"?! Empty Re: unknown command "if"?!

Tue Feb 12, 2013 11:07 pm
The SEL Blocks add-in is your culprit. Add that to the other machine and you should be good to go!
avatar
sdirkx
Posts : 3
Join date : 2013-02-12

unknown command "if"?! Empty Re: unknown command "if"?!

Wed Feb 13, 2013 5:02 pm
Yes, that's it. Thanks!
Sponsored content

unknown command "if"?! Empty Re: unknown command "if"?!

Back to top
Permissions in this forum:
You cannot reply to topics in this forum