Using IF / ELSE in selenium IDE

0 votes
I want to click a checkbox using Selenium IDE - but only if it's not already active.

I'm using Selenium IDE to create my test cases, and HTML suite to run them. How can In use an "if" statement here?
Jun 28, 2018 in Selenium by GandalfDwhite
• 1,320 points
3,522 views

1 answer to this question.

0 votes

You'll have to download the Flow Control plugin for Selenium IDE from the official page

There's also a documentation and author's blogpost .

The alternative way is implementing the whole logic in javascript - including the test steps.

var value = this.browserbot.findElement("id=Input").value;
if (value == "Find the value!") {
    this.browserbot.findElement("id=Button").click();
}
answered Jun 28, 2018 by Meci Matt
• 9,460 points

Related Questions In Selenium

0 votes
1 answer

How to Check if any alert exists in selenium using Python

This might work for you. It did ...READ MORE

answered May 10, 2018 in Selenium by king_kenny
• 3,710 points
7,551 views
0 votes
0 answers
+1 vote
1 answer

How can I automate the process of adding iPhone to cart in Flipkart using Selenium(java),Page Object Model and TestNG? Also validate if product is added and available in cart?

Hey check this https://www.edureka.co/community/47160/automate-purchase-adding-book-cart-flipkart-using-selenium? It deals with a similar ...READ MORE

answered Jan 13 in Selenium by Karan
• 16,050 points
2,609 views
0 votes
2 answers

Finding WebDriver element with Class Name in java

The better way to handle this element ...READ MORE

answered Apr 10, 2018 in Selenium by nsv999
• 5,510 points
3,531 views
0 votes
2 answers

Problem while using InternetExplorerDriver in Selenium WebDriver

enable trusted connection  in internet explorer by ...READ MORE

answered Aug 31 in Selenium by Sri
• 2,970 points
4,534 views
0 votes
1 answer

Geo-location microphone camera pop up

To Allow or Block the notification, access using Selenium and you have to ...READ MORE

answered May 11, 2018 in Selenium by Samarpit
• 5,890 points
2,596 views
0 votes
2 answers

How to use such xpath to find web elements

xpath are two types. 1) Absolute XPath:    /html/b ...READ MORE

answered Sep 2 in Selenium by Sri
• 2,970 points
2,863 views
0 votes
1 answer

Login page test script using selenium and java in Eclipse IDE

Here is an example to login to ...READ MORE

answered Apr 23, 2018 in Selenium by Meci Matt
• 9,460 points
5,798 views
0 votes
1 answer

How can I Install Selenium IDE in Firefox

Selenium IDE works with all Firefox versions, ...READ MORE

answered Apr 13, 2018 in Selenium by Meci Matt
• 9,460 points
639 views