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
zlos7ar
Amateur
Amateur
Posts : 41
Join date : 2012-01-13
Age : 36
Location : Germany

[solved]if statement Empty [solved]if statement

Thu Feb 16, 2012 5:06 pm
hey guys how can I say something like this in selenium IDE

If (bool = true) {
//continue the test
}
else {
//send error report
}

or some other way to check if the value of bool is true ?


Last edited by zlos7ar on Thu Feb 16, 2012 5:37 pm; edited 1 time in total
avatar
zlos7ar
Amateur
Amateur
Posts : 41
Join date : 2012-01-13
Age : 36
Location : Germany

[solved]if statement Empty Re: [solved]if statement

Thu Feb 16, 2012 5:37 pm
I solved that myself ;]

I used this extension: http://www.computerminds.co.uk/automating-boring-tasks-selenium-ide

store true true
gotoIf ${bool}==${true} continue
label continue

I hope thats correct ;]]
avatar
ccox
Master
Master
Posts : 205
Join date : 2012-01-06
Age : 39
Location : Denver, CO

[solved]if statement Empty Re: [solved]if statement

Sat Feb 18, 2012 1:43 am
That is a great extension! It's definitely nice to have conditional statements in IDE. Unfortunately I don't think it works if you try running your scripts from the command with RC.
avatar
zlos7ar
Amateur
Amateur
Posts : 41
Join date : 2012-01-13
Age : 36
Location : Germany

[solved]if statement Empty Re: [solved]if statement

Mon Feb 20, 2012 3:42 pm
Yep unfortunately it does not work in RC.
avatar
rashmichauhan
Posts : 3
Join date : 2012-10-03

[solved]if statement Empty How to IF ELSE condition use Selenium IDE

Wed Oct 10, 2012 6:15 pm
hi Can you please suggest me how to insert IF ELSE condition in my case.

Code:
open  /Login.aspx
    type id=LoginCtrl_UserName chetanmistry
type  id=LoginCtrl_Password chetanmistry
clickAndWait  id=LoginCtrl_LoginButton
    clickAndWait  link=Reporting
    clickAndWait  link=Messenger
    clickAndWait  link=Campaign Management
    clickAndWait  link=Customer Management
    clickAndWait  link=User Management
    clickAndWait  link=System Administration
    clickAndWait  link=Personal
    clickAndWait  id=ctl00_loginStatus

In my case some user have right to see Campaign Management page, Some
user have right to see Messenger page, some have right to see User
management like this.
When I run common script after changing user name and password. The script
gone fail because the same page is not available for all user. I want
to develop if the page not found in the user profile then script will
end successfully.


Please help me.

Regards
Rashmi Chauhan.
Sponsored content

[solved]if statement Empty Re: [solved]if statement

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