SlideShare a Scribd company logo
Selenium Training in Chennai Demo
Part-1
By Creating Experts
Contact 8122241286
http://thecreatingexperts.com/selenium-training-in-chennai/
Introduction to Selenium
Selenium is a free (open source) automated testing suite for web
applications across different browsers and platforms. It is quite similar
to HP Quick Test Pro (QTP) only that Selenium focuses on automating
web-based applications.
Selenium is not just a single tool but a suite of software's, each catering
to different testing needs of an organization. It has four components.
•Selenium Integrated Development Environment (IDE)
•Selenium Remote Control (RC)
•WebDriver
•Selenium Grid
Installing Selenuim IDE & FireBug
Installation of Selenium IDE
What you need
•Mozilla Firefox
•Active Internet Connection
If you do not have Mozilla Firefox yet, you can download it from
http://www.mozilla.org/en-US/firefox/new.
Steps
•Launch Firefox and navigate to http://seleniumhq.org/download/. Under the
Selenium IDE section, click on the link that shows the current version number.
•For security, a Firefox notification will pop up. Click on "Allow."
•Wait until Firefox completes the download and then click "Install Now."
•Wait until the installation is completed. In the pop-up window, click "Restart
Now."
After Firefox has restarted, launch Selenium IDE using either of two
ways:
•By pressing Ctrl+Alt+S
•By clicking on the Firefox menu button > Web Developer> Selenium
IDE
•Selenium IDE should launch
Installation of Firebug
Firebug is a Firefox add-on that we will use to
inspect the HTML elements of the web application under test. It will provide us
the name of the element that our Selenese command would act upon.
Step 1
•Use Firefox to navigate to Firebug's download page
(https://getfirebug.com/downloads/) and click on the download link.
Step 2
•Firefox will take you to its Firebug download section. Click the "Add to Firefox"
button.
Step 3
•Wait for Firefox to complete downloading this add-on. On the dialog box that
comes after, click "Install Now."
Step 4
•Wait for the installation to complete. A notification will pop-up saying, "Firebug
has been installed successfully." You can immediately close this pop-up.
Step 5
•Launch Firebug by doing either of these two methods:
•Press F12
•Click on the Firebug button on the upper right corner of the Firefox window.
Step 6
•Firebug should launch at the bottom of Firefox as shown below
Introduction to Selenium IDE
• Selenium IDE (Integrated Development Environment) is the simplest
tool in the Selenium Suite. It is a Firefox add-on that creates tests
very quickly through its record-and-playback functionality. This
feature is similar to that of QTP. It is effortless to install and easy to
learn.
• Because of its simplicity, Selenium IDE should only be used as a
prototyping tool - not an overall solution for developing and
maintaining complex test suites.
• Though you will be able to use Selenium IDE without prior
knowledge in programming, you should at least be familiar with
HTML, JavaScript, and the DOM (Document Object Model) to utilize
this tool to its full potential. Knowledge of JavaScript will be required
when we get to the section about the Selenese command
"runScript".
• Selenium IDE supports autocomplete mode when creating tests.
This feature serves two purposes:
• It helps the tester to enter commands more quickly.
• It restricts the user from entering invalid commands.
Creating your First Selenium IDE script
•Create a Script by Recording
•Let us now create our first test script in Selenium IDE using the most
common method - by recording. Afterward, we shall execute our script
using the playback feature.
Step 1
•Launch Firefox and Selenium IDE.
•Type the value for our Base URL: http://newtours.demoaut.com/.
•Toggle the Record button on (if it is not yet toggled on by default).
Step 2
•In Firefox, navigate to http://newtours.demoaut.com/.
Step 3
•Right-click on any blank space within the page, like on the Mercury
Tours logo on the upper left corner. This will bring up the Selenium IDE
context menu. Note: Do not click on any hyperlinked objects or images
•Select the "Show Available Commands" option.
•Then, select "assertTitle exact: Welcome: Mercury Tours". This is a
command that makes sure that the page title is correct.
Step 4
•In the "User Name" text box of Mercury Tours, type an invalid
username, "invalidUN".
•In the "Password" text box, type an invalid password, "invalidPW".
Step 5
•Click on the "Sign-In" button.
Step 6
•Toggle the record button off to stop recording.
Step 7
•Now that we are done with our test script, we shall save it in a test
case. In the File menu, select "Save Test Case". Alternatively, you can
simply press Ctrl+S.
Step 8
•Choose your desired location, and then name the test case as
"Invalid_login".
•Click the "Save" button.
Step 9.
•Notice that the file was saved as HTML.
Step 10.
•Go back to Selenium IDE and click the Playback button to execute the
whole script. Selenium IDE should be able to replicate everything
flawlessly.
How to use Locators in Selenium IDE
• Locators tell Selenium IDE which GUI elements ( say Text Box,
Buttons, Check Boxes etc) its needs to operate on.
• Identification of correct GUI elements is a prerequisite to create an
automation script. But accurate identification of GUI elements is
more difficult than it sounds.
• Sometimes, you end up working with incorrect GUI elements or no
elements at all! Hence, Selenium provides a number of Locators to
precisely locate a GUI element
The different types of locator are:
• ID
• Name
• Link Text
• CSS Selector
• Tag and ID
• Tag and class
• Tag and attribute
• Tag, class, and attribute
• Inner text
• DOM (Document Object Model)
• getElementById
• getElementsByName
• dom:name
• dom: index
• XPath
• There are commands that do not need a locator (such as the "open"
command). However, most of them do need Locators.
• The choice of locator depends largely on your Application Under
Test. In this tutorial, we will toggle between facebook, new
tours.demoaut on the basis of locators that these applications
support. Likewise in your testing project you will select any of the
above listed locators based on your application support.
How to enhance a script using
Selenium IDE
Verify Presence of an Element
We can use following two commands to verify the presence of an
element:
•verifyElementPresent - returns TRUE if the specified element was
FOUND in the page; FALSE if otherwise
•verifyElementNotPresent - returns TRUE if the specified element was
NOT FOUND anywhere in the page; FALSE if it is present.
•The test script below verifies that the UserName text box is present
within the Mercury Tours homepage while the First Name text box is
not. The First Name text box is actually an element present in the
Registration page of Mercury Tours, not in the homepage.
strong>Verify Presence of a Certain Text
Conclusion
• In this presentation, I have given the introduction of Selenium and
explained about the Selenium IDE.
• Further topics will be explained in the next presentation.
• If you want to join in the training with us then contact us-
8122241286
• Visit us-http://thecreatingexperts.com/selenium-training-in-chennai/

More Related Content

PPTX
Selenium ide1
mindqqa
 
PPTX
Automating with selenium2
mindqqa
 
PPT
Selenium ide material (1)
Sriram Angajala
 
PPTX
Selenium ide made easy
Narayanan Palani
 
PDF
Selenium IDE
brendon_jag
 
PDF
Getting Started with Selenium
Dave Haeffner
 
PDF
Selenium IDE Introduction, Installation and Working
Disha Srivastava
 
PPTX
Web testing with Selenium
XBOSoft
 
Selenium ide1
mindqqa
 
Automating with selenium2
mindqqa
 
Selenium ide material (1)
Sriram Angajala
 
Selenium ide made easy
Narayanan Palani
 
Selenium IDE
brendon_jag
 
Getting Started with Selenium
Dave Haeffner
 
Selenium IDE Introduction, Installation and Working
Disha Srivastava
 
Web testing with Selenium
XBOSoft
 

What's hot (20)

PPTX
Automated UI testing done right (DDDSydney)
Mehdi Khalili
 
PDF
Selenium Tips & Tricks, presented at the Tel Aviv Selenium Meetup
Dave Haeffner
 
PDF
Selenium IDE LOCATORS
Mindfire Solutions
 
PPTX
Selenium IDE
b4usolution .
 
PDF
Selenium IDE features
onewomanmore witl
 
PDF
Mastering UI automation at Scale: Key Lessons and Best Practices (By Fernando...
Applitools
 
PDF
Automation Testing using Selenium
Naresh Chintalcheru
 
PDF
Efficient Automated Test Creation With Selenium IDE Plugins
Samit Badle
 
PPT
Selenium Ide Tutorials
gueste1e4db
 
PDF
Selenium Tutorial
prad_123
 
PDF
How To Use Selenium Successfully
Dave Haeffner
 
PDF
Practical Tips & Tricks for Selenium Test Automation - Dave Haeffner
Applitools
 
PPTX
Automation - web testing with selenium
Tzirla Rozental
 
PPTX
Automated UI Testing Done Right (QMSDNUG)
Mehdi Khalili
 
PPTX
Selenium Design Patterns
Liraz Shay
 
PPTX
Selenium
nil65
 
PDF
Introduction to Selenium IDE
drnikki
 
PDF
UI Testing Automation
AgileEngine
 
ZIP
From IDE to Selenium 2
davehunt82
 
PDF
Selenium IDE and Beyond
Samit Badle
 
Automated UI testing done right (DDDSydney)
Mehdi Khalili
 
Selenium Tips & Tricks, presented at the Tel Aviv Selenium Meetup
Dave Haeffner
 
Selenium IDE LOCATORS
Mindfire Solutions
 
Selenium IDE
b4usolution .
 
Selenium IDE features
onewomanmore witl
 
Mastering UI automation at Scale: Key Lessons and Best Practices (By Fernando...
Applitools
 
Automation Testing using Selenium
Naresh Chintalcheru
 
Efficient Automated Test Creation With Selenium IDE Plugins
Samit Badle
 
Selenium Ide Tutorials
gueste1e4db
 
Selenium Tutorial
prad_123
 
How To Use Selenium Successfully
Dave Haeffner
 
Practical Tips & Tricks for Selenium Test Automation - Dave Haeffner
Applitools
 
Automation - web testing with selenium
Tzirla Rozental
 
Automated UI Testing Done Right (QMSDNUG)
Mehdi Khalili
 
Selenium Design Patterns
Liraz Shay
 
Selenium
nil65
 
Introduction to Selenium IDE
drnikki
 
UI Testing Automation
AgileEngine
 
From IDE to Selenium 2
davehunt82
 
Selenium IDE and Beyond
Samit Badle
 
Ad

Similar to Selenium Training in Chennai (20)

PDF
Selenium with testng and eclipse ide
Testertester Jaipur
 
PPT
Selenium training
Robin0590
 
PPTX
Selenium training
Shivaraj R
 
PPTX
Selenium Training in Chennai
Thecreating Experts
 
PDF
Selenium by using JAVA
mahirayavarapu
 
PPTX
Selenium- A Software Testing Tool
Zeba Tahseen
 
PPT
Steps to write Selenium
Rohit Thakur
 
PPT
Selenium By Pravin Mishra
Pravin Mishra
 
PDF
Mastering Test Automation: How to Use Selenium Successfully
Applitools
 
PPT
Selenium ppt
Naga Dinesh
 
PPT
Selenium training in chennai
Thecreating Experts
 
PPT
Selenium
shrialinda
 
PPTX
Selenium ppt
Aneesh Rangarajan
 
PDF
Testing mit Codeception: Full-stack testing PHP framework
SusannSgorzaly
 
PPTX
Selenium Introduction and IDE
Murageppa-QA
 
PDF
Interview question & Answers for 3+ years experienced in Selenium | LearningSlot
Learning Slot
 
PPTX
UI Automation Quirks
Lucas Pang
 
PDF
Automated testing with Cypress
Yong Shean Chong
 
PPTX
Software testing tools (free and open source)
Wael Mansour
 
Selenium with testng and eclipse ide
Testertester Jaipur
 
Selenium training
Robin0590
 
Selenium training
Shivaraj R
 
Selenium Training in Chennai
Thecreating Experts
 
Selenium by using JAVA
mahirayavarapu
 
Selenium- A Software Testing Tool
Zeba Tahseen
 
Steps to write Selenium
Rohit Thakur
 
Selenium By Pravin Mishra
Pravin Mishra
 
Mastering Test Automation: How to Use Selenium Successfully
Applitools
 
Selenium ppt
Naga Dinesh
 
Selenium training in chennai
Thecreating Experts
 
Selenium
shrialinda
 
Selenium ppt
Aneesh Rangarajan
 
Testing mit Codeception: Full-stack testing PHP framework
SusannSgorzaly
 
Selenium Introduction and IDE
Murageppa-QA
 
Interview question & Answers for 3+ years experienced in Selenium | LearningSlot
Learning Slot
 
UI Automation Quirks
Lucas Pang
 
Automated testing with Cypress
Yong Shean Chong
 
Software testing tools (free and open source)
Wael Mansour
 
Ad

More from Thecreating Experts (20)

PPTX
Selenium Training in Chennai Demo Part-2
Thecreating Experts
 
PPT
Selenium training in chennai
Thecreating Experts
 
PPTX
SAP BASIS Training in Chennai Demo Part-7
Thecreating Experts
 
PPTX
SAP SD Training in Chennai Demo Part-4
Thecreating Experts
 
PPTX
SAP MM Training in Chennai Demo Part-5
Thecreating Experts
 
PPTX
SAP HR Training in Chennai Demo Part-4
Thecreating Experts
 
PPTX
SAP BASIS Training in Chennai Demo Part-6
Thecreating Experts
 
PPTX
SAP SD Training in Chennai Demo Part-3
Thecreating Experts
 
PPTX
SAP HR Training in Chennai Demo Part-3
Thecreating Experts
 
PPTX
SAP BASIS Training in Chennai Demo Part-5
Thecreating Experts
 
PPTX
SAP HR Training in Chennai Demo Part-1
Thecreating Experts
 
PPTX
SAP BASIS Training in Chennai Demo Part-4
Thecreating Experts
 
PPTX
SAP SD Training in Chennai Demo Part-2
Thecreating Experts
 
PPTX
SAP SD Training in Chennai
Thecreating Experts
 
PPTX
SAP MM Training in Chennai Demo Part-2
Thecreating Experts
 
PPTX
SAP BASIS Training in Chennai Demo Part-3
Thecreating Experts
 
PPTX
SAP MM Training in Chennai
Thecreating Experts
 
PPTX
SAP BASIS Training in Chennai
Thecreating Experts
 
PPTX
SAP BASIS Training in Chennai
Thecreating Experts
 
PPTX
SAP HR Training in Chennai
Thecreating Experts
 
Selenium Training in Chennai Demo Part-2
Thecreating Experts
 
Selenium training in chennai
Thecreating Experts
 
SAP BASIS Training in Chennai Demo Part-7
Thecreating Experts
 
SAP SD Training in Chennai Demo Part-4
Thecreating Experts
 
SAP MM Training in Chennai Demo Part-5
Thecreating Experts
 
SAP HR Training in Chennai Demo Part-4
Thecreating Experts
 
SAP BASIS Training in Chennai Demo Part-6
Thecreating Experts
 
SAP SD Training in Chennai Demo Part-3
Thecreating Experts
 
SAP HR Training in Chennai Demo Part-3
Thecreating Experts
 
SAP BASIS Training in Chennai Demo Part-5
Thecreating Experts
 
SAP HR Training in Chennai Demo Part-1
Thecreating Experts
 
SAP BASIS Training in Chennai Demo Part-4
Thecreating Experts
 
SAP SD Training in Chennai Demo Part-2
Thecreating Experts
 
SAP SD Training in Chennai
Thecreating Experts
 
SAP MM Training in Chennai Demo Part-2
Thecreating Experts
 
SAP BASIS Training in Chennai Demo Part-3
Thecreating Experts
 
SAP MM Training in Chennai
Thecreating Experts
 
SAP BASIS Training in Chennai
Thecreating Experts
 
SAP BASIS Training in Chennai
Thecreating Experts
 
SAP HR Training in Chennai
Thecreating Experts
 

Recently uploaded (20)

DOCX
Unit 5: Speech-language and swallowing disorders
JELLA VISHNU DURGA PRASAD
 
DOCX
Modul Ajar Deep Learning Bahasa Inggris Kelas 11 Terbaru 2025
wahyurestu63
 
PDF
Review of Related Literature & Studies.pdf
Thelma Villaflores
 
PPTX
A Smarter Way to Think About Choosing a College
Cyndy McDonald
 
PPTX
Tips Management in Odoo 18 POS - Odoo Slides
Celine George
 
PPTX
Basics and rules of probability with real-life uses
ravatkaran694
 
PPTX
Information Texts_Infographic on Forgetting Curve.pptx
Tata Sevilla
 
PPTX
Continental Accounting in Odoo 18 - Odoo Slides
Celine George
 
PDF
The-Invisible-Living-World-Beyond-Our-Naked-Eye chapter 2.pdf/8th science cur...
Sandeep Swamy
 
PPTX
How to Close Subscription in Odoo 18 - Odoo Slides
Celine George
 
PPTX
CDH. pptx
AneetaSharma15
 
PPTX
family health care settings home visit - unit 6 - chn 1 - gnm 1st year.pptx
Priyanshu Anand
 
PDF
The Minister of Tourism, Culture and Creative Arts, Abla Dzifa Gomashie has e...
nservice241
 
PPTX
Five Point Someone – Chetan Bhagat | Book Summary & Analysis by Bhupesh Kushwaha
Bhupesh Kushwaha
 
PPTX
Virus sequence retrieval from NCBI database
yamunaK13
 
PPTX
Gupta Art & Architecture Temple and Sculptures.pptx
Virag Sontakke
 
PPTX
HISTORY COLLECTION FOR PSYCHIATRIC PATIENTS.pptx
PoojaSen20
 
PDF
Module 2: Public Health History [Tutorial Slides]
JonathanHallett4
 
PDF
Health-The-Ultimate-Treasure (1).pdf/8th class science curiosity /samyans edu...
Sandeep Swamy
 
PDF
Biological Classification Class 11th NCERT CBSE NEET.pdf
NehaRohtagi1
 
Unit 5: Speech-language and swallowing disorders
JELLA VISHNU DURGA PRASAD
 
Modul Ajar Deep Learning Bahasa Inggris Kelas 11 Terbaru 2025
wahyurestu63
 
Review of Related Literature & Studies.pdf
Thelma Villaflores
 
A Smarter Way to Think About Choosing a College
Cyndy McDonald
 
Tips Management in Odoo 18 POS - Odoo Slides
Celine George
 
Basics and rules of probability with real-life uses
ravatkaran694
 
Information Texts_Infographic on Forgetting Curve.pptx
Tata Sevilla
 
Continental Accounting in Odoo 18 - Odoo Slides
Celine George
 
The-Invisible-Living-World-Beyond-Our-Naked-Eye chapter 2.pdf/8th science cur...
Sandeep Swamy
 
How to Close Subscription in Odoo 18 - Odoo Slides
Celine George
 
CDH. pptx
AneetaSharma15
 
family health care settings home visit - unit 6 - chn 1 - gnm 1st year.pptx
Priyanshu Anand
 
The Minister of Tourism, Culture and Creative Arts, Abla Dzifa Gomashie has e...
nservice241
 
Five Point Someone – Chetan Bhagat | Book Summary & Analysis by Bhupesh Kushwaha
Bhupesh Kushwaha
 
Virus sequence retrieval from NCBI database
yamunaK13
 
Gupta Art & Architecture Temple and Sculptures.pptx
Virag Sontakke
 
HISTORY COLLECTION FOR PSYCHIATRIC PATIENTS.pptx
PoojaSen20
 
Module 2: Public Health History [Tutorial Slides]
JonathanHallett4
 
Health-The-Ultimate-Treasure (1).pdf/8th class science curiosity /samyans edu...
Sandeep Swamy
 
Biological Classification Class 11th NCERT CBSE NEET.pdf
NehaRohtagi1
 

Selenium Training in Chennai

  • 1. Selenium Training in Chennai Demo Part-1 By Creating Experts Contact 8122241286 http://thecreatingexperts.com/selenium-training-in-chennai/
  • 2. Introduction to Selenium Selenium is a free (open source) automated testing suite for web applications across different browsers and platforms. It is quite similar to HP Quick Test Pro (QTP) only that Selenium focuses on automating web-based applications. Selenium is not just a single tool but a suite of software's, each catering to different testing needs of an organization. It has four components. •Selenium Integrated Development Environment (IDE) •Selenium Remote Control (RC) •WebDriver •Selenium Grid
  • 3. Installing Selenuim IDE & FireBug Installation of Selenium IDE What you need •Mozilla Firefox •Active Internet Connection If you do not have Mozilla Firefox yet, you can download it from http://www.mozilla.org/en-US/firefox/new. Steps •Launch Firefox and navigate to http://seleniumhq.org/download/. Under the Selenium IDE section, click on the link that shows the current version number. •For security, a Firefox notification will pop up. Click on "Allow."
  • 4. •Wait until Firefox completes the download and then click "Install Now." •Wait until the installation is completed. In the pop-up window, click "Restart Now." After Firefox has restarted, launch Selenium IDE using either of two ways: •By pressing Ctrl+Alt+S •By clicking on the Firefox menu button > Web Developer> Selenium IDE •Selenium IDE should launch
  • 5. Installation of Firebug Firebug is a Firefox add-on that we will use to inspect the HTML elements of the web application under test. It will provide us the name of the element that our Selenese command would act upon. Step 1 •Use Firefox to navigate to Firebug's download page (https://getfirebug.com/downloads/) and click on the download link. Step 2 •Firefox will take you to its Firebug download section. Click the "Add to Firefox" button. Step 3 •Wait for Firefox to complete downloading this add-on. On the dialog box that comes after, click "Install Now."
  • 6. Step 4 •Wait for the installation to complete. A notification will pop-up saying, "Firebug has been installed successfully." You can immediately close this pop-up. Step 5 •Launch Firebug by doing either of these two methods: •Press F12 •Click on the Firebug button on the upper right corner of the Firefox window. Step 6 •Firebug should launch at the bottom of Firefox as shown below
  • 7. Introduction to Selenium IDE • Selenium IDE (Integrated Development Environment) is the simplest tool in the Selenium Suite. It is a Firefox add-on that creates tests very quickly through its record-and-playback functionality. This feature is similar to that of QTP. It is effortless to install and easy to learn. • Because of its simplicity, Selenium IDE should only be used as a prototyping tool - not an overall solution for developing and maintaining complex test suites.
  • 8. • Though you will be able to use Selenium IDE without prior knowledge in programming, you should at least be familiar with HTML, JavaScript, and the DOM (Document Object Model) to utilize this tool to its full potential. Knowledge of JavaScript will be required when we get to the section about the Selenese command "runScript". • Selenium IDE supports autocomplete mode when creating tests. This feature serves two purposes: • It helps the tester to enter commands more quickly. • It restricts the user from entering invalid commands.
  • 9. Creating your First Selenium IDE script •Create a Script by Recording •Let us now create our first test script in Selenium IDE using the most common method - by recording. Afterward, we shall execute our script using the playback feature. Step 1 •Launch Firefox and Selenium IDE. •Type the value for our Base URL: http://newtours.demoaut.com/. •Toggle the Record button on (if it is not yet toggled on by default). Step 2 •In Firefox, navigate to http://newtours.demoaut.com/.
  • 10. Step 3 •Right-click on any blank space within the page, like on the Mercury Tours logo on the upper left corner. This will bring up the Selenium IDE context menu. Note: Do not click on any hyperlinked objects or images •Select the "Show Available Commands" option. •Then, select "assertTitle exact: Welcome: Mercury Tours". This is a command that makes sure that the page title is correct. Step 4 •In the "User Name" text box of Mercury Tours, type an invalid username, "invalidUN". •In the "Password" text box, type an invalid password, "invalidPW".
  • 11. Step 5 •Click on the "Sign-In" button. Step 6 •Toggle the record button off to stop recording. Step 7 •Now that we are done with our test script, we shall save it in a test case. In the File menu, select "Save Test Case". Alternatively, you can simply press Ctrl+S. Step 8 •Choose your desired location, and then name the test case as "Invalid_login". •Click the "Save" button.
  • 12. Step 9. •Notice that the file was saved as HTML. Step 10. •Go back to Selenium IDE and click the Playback button to execute the whole script. Selenium IDE should be able to replicate everything flawlessly.
  • 13. How to use Locators in Selenium IDE • Locators tell Selenium IDE which GUI elements ( say Text Box, Buttons, Check Boxes etc) its needs to operate on. • Identification of correct GUI elements is a prerequisite to create an automation script. But accurate identification of GUI elements is more difficult than it sounds. • Sometimes, you end up working with incorrect GUI elements or no elements at all! Hence, Selenium provides a number of Locators to precisely locate a GUI element
  • 14. The different types of locator are: • ID • Name • Link Text • CSS Selector • Tag and ID • Tag and class • Tag and attribute • Tag, class, and attribute • Inner text • DOM (Document Object Model) • getElementById • getElementsByName
  • 15. • dom:name • dom: index • XPath • There are commands that do not need a locator (such as the "open" command). However, most of them do need Locators. • The choice of locator depends largely on your Application Under Test. In this tutorial, we will toggle between facebook, new tours.demoaut on the basis of locators that these applications support. Likewise in your testing project you will select any of the above listed locators based on your application support.
  • 16. How to enhance a script using Selenium IDE Verify Presence of an Element We can use following two commands to verify the presence of an element: •verifyElementPresent - returns TRUE if the specified element was FOUND in the page; FALSE if otherwise •verifyElementNotPresent - returns TRUE if the specified element was NOT FOUND anywhere in the page; FALSE if it is present. •The test script below verifies that the UserName text box is present within the Mercury Tours homepage while the First Name text box is not. The First Name text box is actually an element present in the Registration page of Mercury Tours, not in the homepage. strong>Verify Presence of a Certain Text
  • 17. Conclusion • In this presentation, I have given the introduction of Selenium and explained about the Selenium IDE. • Further topics will be explained in the next presentation. • If you want to join in the training with us then contact us- 8122241286 • Visit us-http://thecreatingexperts.com/selenium-training-in-chennai/