SlideShare uma empresa Scribd logo
1 de 17
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/

Mais conteúdo relacionado

Mais procurados

Mastering UI automation at Scale: Key Lessons and Best Practices (By Fernando...
Mastering UI automation at Scale: Key Lessons and Best Practices (By Fernando...Mastering UI automation at Scale: Key Lessons and Best Practices (By Fernando...
Mastering UI automation at Scale: Key Lessons and Best Practices (By Fernando...
Applitools
 
Selenium Ide Tutorials
Selenium Ide TutorialsSelenium Ide Tutorials
Selenium Ide Tutorials
gueste1e4db
 
Selenium Tutorial
Selenium TutorialSelenium Tutorial
Selenium Tutorial
prad_123
 
Automated UI Testing Done Right (QMSDNUG)
Automated UI Testing Done Right (QMSDNUG)Automated UI Testing Done Right (QMSDNUG)
Automated UI Testing Done Right (QMSDNUG)
Mehdi Khalili
 
Selenium
SeleniumSelenium
Selenium
nil65
 
UI Testing Automation
UI Testing AutomationUI Testing Automation
UI Testing Automation
AgileEngine
 

Mais procurados (20)

Automated UI testing done right (DDDSydney)
Automated UI testing done right (DDDSydney)Automated UI testing done right (DDDSydney)
Automated UI testing done right (DDDSydney)
 
Selenium Tips & Tricks, presented at the Tel Aviv Selenium Meetup
Selenium Tips & Tricks, presented at the Tel Aviv Selenium MeetupSelenium Tips & Tricks, presented at the Tel Aviv Selenium Meetup
Selenium Tips & Tricks, presented at the Tel Aviv Selenium Meetup
 
Selenium IDE LOCATORS
Selenium IDE LOCATORSSelenium IDE LOCATORS
Selenium IDE LOCATORS
 
Selenium IDE
Selenium IDESelenium IDE
Selenium IDE
 
Selenium IDE features
Selenium IDE featuresSelenium IDE features
Selenium IDE features
 
Mastering UI automation at Scale: Key Lessons and Best Practices (By Fernando...
Mastering UI automation at Scale: Key Lessons and Best Practices (By Fernando...Mastering UI automation at Scale: Key Lessons and Best Practices (By Fernando...
Mastering UI automation at Scale: Key Lessons and Best Practices (By Fernando...
 
Automation Testing using Selenium
Automation Testing using SeleniumAutomation Testing using Selenium
Automation Testing using Selenium
 
Efficient Automated Test Creation With Selenium IDE Plugins
Efficient Automated Test Creation With Selenium IDE PluginsEfficient Automated Test Creation With Selenium IDE Plugins
Efficient Automated Test Creation With Selenium IDE Plugins
 
Selenium Ide Tutorials
Selenium Ide TutorialsSelenium Ide Tutorials
Selenium Ide Tutorials
 
Selenium Tutorial
Selenium TutorialSelenium Tutorial
Selenium Tutorial
 
How To Use Selenium Successfully
How To Use Selenium SuccessfullyHow To Use Selenium Successfully
How To Use Selenium Successfully
 
Practical Tips & Tricks for Selenium Test Automation - Dave Haeffner
Practical Tips & Tricks for Selenium Test Automation - Dave HaeffnerPractical Tips & Tricks for Selenium Test Automation - Dave Haeffner
Practical Tips & Tricks for Selenium Test Automation - Dave Haeffner
 
Automation - web testing with selenium
Automation - web testing with seleniumAutomation - web testing with selenium
Automation - web testing with selenium
 
Automated UI Testing Done Right (QMSDNUG)
Automated UI Testing Done Right (QMSDNUG)Automated UI Testing Done Right (QMSDNUG)
Automated UI Testing Done Right (QMSDNUG)
 
Selenium Design Patterns
Selenium Design PatternsSelenium Design Patterns
Selenium Design Patterns
 
Selenium
SeleniumSelenium
Selenium
 
Introduction to Selenium IDE
Introduction to Selenium IDEIntroduction to Selenium IDE
Introduction to Selenium IDE
 
From IDE to Selenium 2
From IDE to Selenium 2From IDE to Selenium 2
From IDE to Selenium 2
 
UI Testing Automation
UI Testing AutomationUI Testing Automation
UI Testing Automation
 
Selenium IDE and Beyond
Selenium IDE and BeyondSelenium IDE and Beyond
Selenium IDE and Beyond
 

Destaque

Lista de estatistica
Lista de estatisticaLista de estatistica
Lista de estatistica
BriefCase
 

Destaque (12)

Selenium training in chennai
Selenium training in chennaiSelenium training in chennai
Selenium training in chennai
 
Alle porte dell'Europa. Raccontare le migrazioni in musei e archivi
Alle porte dell'Europa. Raccontare le migrazioni in musei e archiviAlle porte dell'Europa. Raccontare le migrazioni in musei e archivi
Alle porte dell'Europa. Raccontare le migrazioni in musei e archivi
 
Task 4
Task 4Task 4
Task 4
 
Urban Open Data in Ghana and West Africa
Urban Open Data in Ghana and West AfricaUrban Open Data in Ghana and West Africa
Urban Open Data in Ghana and West Africa
 
4G no brasil
4G no brasil 4G no brasil
4G no brasil
 
Análisis de estratégico de precios
Análisis de estratégico de precios Análisis de estratégico de precios
Análisis de estratégico de precios
 
Aula18 - Estatística Suficiente
Aula18 - Estatística SuficienteAula18 - Estatística Suficiente
Aula18 - Estatística Suficiente
 
Lista de estatistica
Lista de estatisticaLista de estatistica
Lista de estatistica
 
Diapositivas de matematicas bloque7
Diapositivas de matematicas bloque7Diapositivas de matematicas bloque7
Diapositivas de matematicas bloque7
 
Internet y sus servicios
Internet y sus serviciosInternet y sus servicios
Internet y sus servicios
 
PASOS PARA RESOLVER PROBLEMAS MATEMÁTICOS
PASOS PARA RESOLVER PROBLEMAS MATEMÁTICOSPASOS PARA RESOLVER PROBLEMAS MATEMÁTICOS
PASOS PARA RESOLVER PROBLEMAS MATEMÁTICOS
 
Entrepreneur Way #25 - Februari 2017
Entrepreneur Way #25 - Februari 2017Entrepreneur Way #25 - Februari 2017
Entrepreneur Way #25 - Februari 2017
 

Semelhante a Selenium training in chennai

Selenium training
Selenium trainingSelenium training
Selenium training
Robin0590
 
Steps to write Selenium
Steps to write Selenium  Steps to write Selenium
Steps to write Selenium
Rohit Thakur
 

Semelhante a Selenium training in chennai (20)

Selenium with testng and eclipse ide
Selenium with testng and eclipse ideSelenium with testng and eclipse ide
Selenium with testng and eclipse ide
 
Selenium training
Selenium trainingSelenium training
Selenium training
 
Selenium training
Selenium trainingSelenium training
Selenium training
 
Selenium Training in Chennai
Selenium Training in ChennaiSelenium Training in Chennai
Selenium Training in Chennai
 
Selenium by using JAVA
Selenium by using JAVASelenium by using JAVA
Selenium by using JAVA
 
Selenium
SeleniumSelenium
Selenium
 
Selenium- A Software Testing Tool
Selenium- A Software Testing ToolSelenium- A Software Testing Tool
Selenium- A Software Testing Tool
 
Steps to write Selenium
Steps to write Selenium  Steps to write Selenium
Steps to write Selenium
 
Selenium By Pravin Mishra
Selenium By Pravin MishraSelenium By Pravin Mishra
Selenium By Pravin Mishra
 
Mastering Test Automation: How to Use Selenium Successfully
Mastering Test Automation: How to Use Selenium Successfully Mastering Test Automation: How to Use Selenium Successfully
Mastering Test Automation: How to Use Selenium Successfully
 
Selenium ppt
Selenium pptSelenium ppt
Selenium ppt
 
Selenium
SeleniumSelenium
Selenium
 
Selenium ppt
Selenium pptSelenium ppt
Selenium ppt
 
Testing mit Codeception: Full-stack testing PHP framework
Testing mit Codeception: Full-stack testing PHP frameworkTesting mit Codeception: Full-stack testing PHP framework
Testing mit Codeception: Full-stack testing PHP framework
 
Selenium Introduction and IDE
Selenium Introduction and IDESelenium Introduction and IDE
Selenium Introduction and IDE
 
Interview question & Answers for 3+ years experienced in Selenium | LearningSlot
Interview question & Answers for 3+ years experienced in Selenium | LearningSlotInterview question & Answers for 3+ years experienced in Selenium | LearningSlot
Interview question & Answers for 3+ years experienced in Selenium | LearningSlot
 
UI Automation Quirks
UI Automation QuirksUI Automation Quirks
UI Automation Quirks
 
Automated testing with Cypress
Automated testing with CypressAutomated testing with Cypress
Automated testing with Cypress
 
Softwaretestingtoolsfreeandopensourcefinal 150411221750-conversion-gate01
Softwaretestingtoolsfreeandopensourcefinal 150411221750-conversion-gate01Softwaretestingtoolsfreeandopensourcefinal 150411221750-conversion-gate01
Softwaretestingtoolsfreeandopensourcefinal 150411221750-conversion-gate01
 
Software testing tools (free and open source)
Software testing tools (free and open source)Software testing tools (free and open source)
Software testing tools (free and open source)
 

Mais de Thecreating Experts

Mais de Thecreating Experts (20)

Selenium Training in Chennai Demo Part-2
Selenium Training in Chennai Demo Part-2 Selenium Training in Chennai Demo Part-2
Selenium Training in Chennai Demo Part-2
 
Selenium Training in Chennai
Selenium Training in ChennaiSelenium Training in Chennai
Selenium Training in Chennai
 
SAP BASIS Training in Chennai Demo Part-7
SAP BASIS Training in Chennai Demo Part-7SAP BASIS Training in Chennai Demo Part-7
SAP BASIS Training in Chennai Demo Part-7
 
SAP SD Training in Chennai Demo Part-4
SAP SD Training in Chennai Demo Part-4SAP SD Training in Chennai Demo Part-4
SAP SD Training in Chennai Demo Part-4
 
SAP MM Training in Chennai Demo Part-5
SAP MM Training in Chennai Demo Part-5SAP MM Training in Chennai Demo Part-5
SAP MM Training in Chennai Demo Part-5
 
SAP HR Training in Chennai Demo Part-4
SAP HR Training in Chennai Demo Part-4SAP HR Training in Chennai Demo Part-4
SAP HR Training in Chennai Demo Part-4
 
SAP BASIS Training in Chennai Demo Part-6
SAP BASIS Training in Chennai Demo Part-6SAP BASIS Training in Chennai Demo Part-6
SAP BASIS Training in Chennai Demo Part-6
 
SAP SD Training in Chennai Demo Part-3
SAP SD Training in Chennai Demo Part-3SAP SD Training in Chennai Demo Part-3
SAP SD Training in Chennai Demo Part-3
 
SAP HR Training in Chennai Demo Part-3
SAP HR Training in Chennai Demo Part-3SAP HR Training in Chennai Demo Part-3
SAP HR Training in Chennai Demo Part-3
 
SAP BASIS Training in Chennai Demo Part-5
SAP BASIS Training in Chennai Demo Part-5SAP BASIS Training in Chennai Demo Part-5
SAP BASIS Training in Chennai Demo Part-5
 
SAP HR Training in Chennai Demo Part-1
SAP HR Training in Chennai Demo Part-1SAP HR Training in Chennai Demo Part-1
SAP HR Training in Chennai Demo Part-1
 
SAP BASIS Training in Chennai Demo Part-4
SAP BASIS Training in Chennai Demo Part-4SAP BASIS Training in Chennai Demo Part-4
SAP BASIS Training in Chennai Demo Part-4
 
SAP SD Training in Chennai Demo Part-2
SAP SD Training in Chennai Demo Part-2SAP SD Training in Chennai Demo Part-2
SAP SD Training in Chennai Demo Part-2
 
SAP SD Training in Chennai
SAP SD Training in Chennai SAP SD Training in Chennai
SAP SD Training in Chennai
 
SAP MM Training in Chennai Demo Part-2
SAP MM Training in Chennai Demo Part-2SAP MM Training in Chennai Demo Part-2
SAP MM Training in Chennai Demo Part-2
 
SAP BASIS Training in Chennai Demo Part-3
SAP BASIS Training in Chennai Demo Part-3SAP BASIS Training in Chennai Demo Part-3
SAP BASIS Training in Chennai Demo Part-3
 
SAP MM Training in Chennai
SAP MM Training in ChennaiSAP MM Training in Chennai
SAP MM Training in Chennai
 
SAP BASIS Training in Chennai
SAP BASIS Training  in ChennaiSAP BASIS Training  in Chennai
SAP BASIS Training in Chennai
 
SAP BASIS Training in Chennai
SAP BASIS Training in ChennaiSAP BASIS Training in Chennai
SAP BASIS Training in Chennai
 
SAP HR Training in Chennai
SAP HR Training in ChennaiSAP HR Training in Chennai
SAP HR Training in Chennai
 

Último

The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
KarakKing
 

Último (20)

UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
Plant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptxPlant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptx
 

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/