Questions tagged [selenium-ide]

The Selenium-IDE (Integrated Development Environment) is the tool you use to develop your Selenium test cases. It’s an easy-to-use Firefox plug-in and is generally the most efficient way to develop test cases.

Selenium IDE is implemented as a and extension, and allows you to record, edit, and debug tests. Selenium IDE includes the entire Selenium Core, allowing you to easily and quickly record and play back tests in the actual environment that they will run.

Getting Started with Selenium IDE

2219 questions
22
votes
7 answers

Selenium: test if element contains some text

With Selenium IDE, how can I test if an element's inner text contains a specific string? For example:

abcde

'id=fred' contains "bcd" = true)
Mark W
  • 5,824
  • 15
  • 59
  • 97
22
votes
1 answer

Click a button with XPath containing partial id and title in Selenium IDE

Using Selenium IDE, I'm trying to click a button within a table on a webpage using XPath with a partial id and a title from the element. The XPath I'm using is: xpath=//*[contains(@id, 'ctl00_btnAircraftMapCell')]//*[contains(@title, 'Select Seat')]…
MikeH
  • 243
  • 1
  • 2
  • 6
21
votes
8 answers

Selenium-IDE: How to simulate non-printable keys (ENTER, ESC, Backspace)?

What is the exact HTML code to simulate ENTER, ESC, BACKSPACE and DOWN in Selenium IDE 1.3.0? typeKeys didn't work nor did this: keyDown id=zc_0_4_3-real 10 keyUp …
Aaron Digulla
  • 321,842
  • 108
  • 597
  • 820
21
votes
2 answers

Conditional Post-Build step in Jenkins (Ideally without plugins)

If I understand correctly I can make a build step conditional using this plugin: https://wiki.jenkins-ci.org/display/JENKINS/Conditional+BuildStep+Plugin First does this plugin work the Post-Build steps? Second is there a way to make Post-Build…
John
  • 286
  • 1
  • 2
  • 9
21
votes
7 answers

In Selenium IDE, how to get the value of the base url

Is it possible to retrieve the value of the base url from inside a Selenium script (a plain HTML-saved script from Selenium IDE)? What I'm trying to do is verify the current url using assertLocation. But assertLocation returns the absolute url. I…
Emilien
  • 2,971
  • 2
  • 22
  • 32
20
votes
4 answers

Selenium how to select an object by class

I have a web page with a form and has a field that uses the jquery autocomplete function. This is how the HTML renders after a user name returns 1 or more results. However I cannot figure out how to make Selenium "click" a result. Can I do a…
aron
  • 2,856
  • 11
  • 49
  • 79
19
votes
9 answers

Selenium: How to wait for options in a select to be populated?

I am using Selenium for the first time and am overwhelmed by the options. I am using the IDE in Firefox. When my page loads, it subsequently fetches values via an JSONP request, with which it populates options in a select. How do I get Selenium to…
mydoghasworms
  • 18,233
  • 11
  • 61
  • 95
19
votes
2 answers

How should I write functional tests for Yii web application that will be run on selenium server?

I am currently setting up a development environment for my new project and I am thinking hard about one thing. I plan on using Yii. I want to have functional tests automated, I already have gerrit and Jenkins in place, working. I read this note and…
Nebril
  • 3,153
  • 1
  • 33
  • 50
18
votes
3 answers

Setting up Selenium for recording as well as running in different browsers and platforms

I'd like to setup a Selenium server so that clients can record tests locally, recorded tests can be replayed and tested on an Ubuntu server with Firefox + Chrome. Unfortunately the Selenium site is so confusing and mentions so many different…
Tom
  • 33,626
  • 31
  • 85
  • 109
17
votes
5 answers

Can Selenium verify text inside a PDF loaded by the browser?

My web application loads a pdf in the browser. I have figured out how to check that the pdf has loaded correctly using: verifyAttribute xpath=//embed/@src {URL of PDF goes here} It would be really nice to be able to check the contents of the pdf…
Daniel Alexiuc
  • 13,078
  • 9
  • 58
  • 73
16
votes
4 answers

How to find a radio button element by value using Selenium?

Until now I just did like: val radioButton4: WebElement = driver.findElement(By.id("FieldsubCode2")) radioButton4.click but now I want to find element by value, this value: So I want to go: val radioButton4: WebElement =…
Joe
  • 2,543
  • 3
  • 25
  • 49
16
votes
8 answers

How to find whether button is disabled or not in Selenium IDE

I want to check whether button is disabled or not by selenium IDE But I couldn't. I have tried below code but it doesn't work. is there any other way to find whether button is disabled...? …
Sree
  • 2,792
  • 8
  • 25
  • 33
15
votes
5 answers

Selenium web driver: cannot be scrolled into view

I am using Selenium IDE and Selenium web driver testng in eclipse .. my testing is against ZK application .. the test case works fine on Selenium IDE ..
Naif
  • 165
  • 1
  • 1
  • 6
15
votes
2 answers

Using if / else in selenium ide

I have a checkbox that I'm trying to click in Selenium IDE - but only if it's not already active. I'm using Selenium IDE to create my tests, and htmlsuite to run them - anyone know how I can use an "if" in those?
Hippyjim
  • 2,520
  • 6
  • 38
  • 54