123ArticleOnline Logo
Welcome to 123ArticleOnline.com!
ALL >> Computer-Programming >> View Article

Selenium – Features, Xpath Patterns And User Extensions

By Author: Siyaram Ray
Total Articles: 356

What is Selenium Test?
Selenium is an open source web test computerization device utilized for mechanizing electronic application tests. It has a few parts:
• Selenium IDE(a Firefox module utilized for recording and playing back test application)
• Selenium RC (Selenium Server to dispatch and communicate with web programs)
• Selenium Client Driver (Selenium API, which can be utilized with numerous dialects)
• Selenium Grid (Selenium Hub to dispatch various tests in the meantime)
• Selenium WebDriverBackedSelenium (used to run Selenium RC applications with Selenium Web Driver
Selenium Features:
• Works anyplace Javascript is upheld
• Hooks with numerous different dialects: Java, .Net, Ruby, Python
• Can mimic a client route through pages and web components
• Verifies and attests data on the website page
• Actual content is HTML based, so natural to learn and utilize it immediately
• Can make a test suite that incorporates different experiments
• Can run the test suite with Selenium IDE or Selenium summon line
• Selenium API can bolster different programs, so application program similarity can be tried effectively.
• Selenium IDE contains rich charges to utilize when recording and playing back test applications.
• Selenium cell phone programming interface can test portable application.
What amount does Selenium permit cost per customer machine?
Selenium is open source programming, discharged under the Apache 2.0 permit and can be downloaded and utilized without charge.
Selenium IDE Useful Xpath Patterns:-
When utilizing Xpath in Selenium IDE or Selenium WebDriver to distinguish web components, here are some helpful examples to find dynamic esteems for component's id qualities.
• text
/div[text()='selenium master']
• starts-with
where 12345 is a dynamic number you could utilize the accompanying XPath:
/input[starts-with(@id, 'username-')]
• contains

For the above xpath, utilizing Css is speedier and neater. css=span.login.module
Utilizing Xpath Checker in Selenium Test Automation:-
When utilizing Xpath, affirming the Xpath content is essential to ensure that Selenium IDE, WebDriver or Selenium RC can distinguish the xpath locator amid the test.
QA Engineers can utilize Xpath Checker to confim xpath. Xpath Checker should be introduced on Firefox in light of the fact that it is an extra.
For instance, on Wikipedia page, there is a connection named "English". When utilizing xpath, we can utilize the content beneath.
While affirming the xpath with Xpath Checker, Xpath Checker shows the connection.
Selenium IDE Xpath Tutorials:-
QA Engineers need to give any component locator(like id, name, css way, xpath and so forth.) in target section of selenium window to find that particular component to play out some activity on it .If you have worked with selenium IDE then you realizes that occasionally components does not contains id or name. Finding component by xpath is the method for finding component and you can utilize it as an option of id or name of component.
Path in XML report demonstrates the heading of component area through hubs and traits.
There are three fields 1. Info content box 2. select drop down and 3. input catch. What's more, roar of those fields there is development of relative XML hubs through firebug. As you find in picture, you can utilize "id=searchInput" or "name=search" to recognize input content box to type something in to it.
Selenium IDE User Extensions:-
Client augmentations are JavaScript records that enable one to make his or her own customizations and highlights to include extra usefulness. Frequently this is as redone charges despite the fact that this extensibility isn't restricted to extra orders.
To include client augmentations, open the "Alternatives" menu and select choices. On the Selenium IDE Options window, include Selenium IDE expansions.
Utilizing Globbing Pattern and Regular Expression with Selenium IDE:-
In some experiments, QA Engineers need to confirm content or number examples by utilizing verifyTextPresent, verifyTitle, verifyAlert, assertConfirmation, verifyText, and verifyPrompt. Selenium locators can use example to depict exceptional characters, and dynamic writings to check what content is relied upon as opposed to specifying that content precisely.
There are three kinds of examples: globbing, normal articulations, and correct.
• which means "coordinate anything," i.e., nothing, a solitary character, or many characters.
• [ ] which means "coordinate any single character found inside the square sections.
• [aeiou] coordinates any lowercase vowel
• [0-9] coordinates any digit
• [a-zA-Z0-9] coordinates any alphanumeric character
When utilizing globbing design, for a Selenese charge, you can prefix the example with a glob: name
Standard Expression Patterns:
Standard articulation designs are the most intense of the three sorts of examples that Selenium underpins. General articulations are likewise upheld by most abnormal state programming dialects, numerous word processors, and a large group of instruments, In Selenium, normal articulation designs enable a client to perform many undertakings that would be extremely troublesome something else. For instance, assume your test expected to guarantee that a specific table cell contained only a number. regexp: [0-9]+ is a straightforward example that will coordinate a decimal number of any length.
Correct Pattern:
Correct example implies that clients need to confirm the correct messages or numbers. It utilizes no extraordinary characters by any means.
About Author:
Infocampus is an institute that provides selenium training in Bangalore. Infocampus conducts practical oriented classes with real time projects with live examples. Selenium classes will be taken by an expert professional having 10+yrs of work experience. Attend free demo classes before joining selenium course. Infocampus is a best selenium training institute in Bangalore. Call 9738001024 and get more details or visit http://infocampus.co.in/best-selenium-testing-training-center-in-bangalore.html.

More About the Author

best institute for selenium training in Bangalore – Infocampus. Infocampus is an excellence training center for selenium courses in Bangalore. At Infocampus, selenium training is focused on practical and real time examples. Contact Infocampus at 8884166608 or visit http://infocampus.co.in/best-selenium-testing-training-center-in-bangalore.html for complete details on selenium training.

Total Views: 69Word Count: 879See All articles From Author

Computer Programming Articles

1. Test Automation – Importance Of Selenium Ide With Features
Author: Siyaram ray

2. The Effect Of Chicken Cage On Temperature Regulation Of Chicken House
Author: The effect of chicken cage on temperature regulati

3. The Chicken House Needs Ventilation
Author: The chicken house needs ventilation

4. Automation Testing - Instructions For Integrating Jenkins With Selenium Webdriver
Author: Siyaram ray

5. 10 Performance Enhancement Tips For Mobile App Development
Author: august sin

6. E-commerce Software Provider Company In India For Best E-commerce Solutions
Author: Zentryx Tech

7. Automation Testing - Selenium Webdriver Testing Tool
Author: Siyaram ray

8. Career Opportunities As A Selenium Tester
Author: Siyaram ray

9. How To Do A Good Job In Heatstroke Prevention In Chicken Farms
Author: How to do a good job in heatstroke prevention in c

10. Selenium Testing Tool Is More Used In Automation Testing
Author: Siyaram ray

11. Simplify For Better Sales: Tips For Optimizing The Checkout Page
Author: Shailesh Gajjar

12. Did Web Development Training Is Require
Author: Siyaram ray

13. Join Selenium Training In Bangalore To Become Selenium Master
Author: Siyaram ray

14. Direct Mail Marketing Services – Why It Is An Integral Part Of Your Advertising Campaign
Author: Daniel Mena

15. Building Advance Website On Drupal Cms – A Scalable Option For Your Business
Author: Zentryx Tech

Login To Account
Login Email:
Forgot Password?
New User?
Sign Up Newsletter
Email Address: