Selenium IDE
Selenium RC
(Remote Control)
Selenium
WebDriver
Selenium Grid
Selenium RC + Selenium WebDriver = Selenium 2.0
Differences between Selenium IDE, Selenium RC and Selenium WebDriver
Features | Selenium IDE | Selenium RC | Selenium WebDriver |
---|---|---|---|
Browser | Mozilla | All browsers | All browsers |
Support record & playback |
✔ |
✘ |
✘ |
Start Server | ✘ | ✔ | ✘ |
Core engine | Javascript based | Javascript based | Interacts natively with browser application |
Support to test iPhone/ Android application : |
✘ |
✘ |
✔ |
Test Scripts
WebDriver
Browser
...
Selenium
WebDriver
API
send request
communicate
Technique in data extraction where you pull information from websites.
Web Scraping
Examples :
test.js
var webdriverio = require('webdriverio');
var options = {
desiredCapabilities: {
browserName: 'firefox'
}
};
webdriverio
.remote(options)
.init()
.url('http://www.google.com')
.getTitle().then(function(title) {
console.log('Title was: ' + title);
})
.end();
Output
Functional Testing
A functional test such as:
Differences between Selenium 2.0, Phantomjs and Nightmarejs
Features | Selenium 2.0 | Phantomjs | Nightmarejs |
---|---|---|---|
Supported Language | All | All(via Selenium) |
JavaScript
|
About | Suite of tools to automate web browsers across many platforms. | Headless WebKit scriptable with a JavaScript API. |
High-level browser automation library |
Headless browser | ✘ | ✔ | ✔ |
Scrapping | ✔ | ✔ | ✔ |
-THANK YOU-