Hello everyone
You can learn the selenium in simple and easiest way within few days and can be a master in Selenium.
In this blog each and every aspects of Selenium is being described in detail along with screenshots and for sure this will be a good tutorial for the beginners and for those who would like to learn the selenium in short period.
You can learn much about Selenium, Selenium IDE and WebDriver by navigating to an appropriate pages. I have included all the commands that we will use in Selenium IDE and in WebDriver.
For interview purpose please go through the “Interview FAQ” where the list of question has been include along with their answers. For more questions please leave a comment or follow by an email so that I can get in touch with you…
If any suggestions please leave a comment for any changes or updates that needs to be done on this blog.
Have a nice day and start learning Selenium now…
Tuesday, January 27, 2015
Wednesday, November 19, 2014
- Check for page title
- Check for certain text
- Check for certain element (text box, drop down, table etc.)
- Name of Command
- Element Locator (also known as Target)
- Value (required when using echo, wait etc.)
- Open: opens a web page.
- click/clickAndWait: click on an element and waits for a new page to load.
- Select: Selects a value from a drop down value.
- verifyTitle/assertTitle: verifies/asserts page title.
- verify/assert ElementPresent: verifies/asserts presence of element, in the page.
- verify/assert TextPresent: verifies/asserts expected text is somewhere on the page.
- Direct child is denoted with - /
- Relative child is denoted with - //
- Id, class, names can also be used with XPath –
- //input[@name=’q’]
- //input[@id=’lst-ib’]
- //input[@class=’ lst’]
- //input[contains(@id,'lst-ib')]
- css=input[name=’q’]
- css=input[id=’lst-ib’] or input#lst-ib
- css=input[class=’ lst’] or input.lst
- css=input[id*=' lst-ib ')]
- css = a:contains(‘log out’)
- Able to execute tests only with Firefox
- Not able to use full-fledged programming language and being limited to Selenese
- Client libraries which let you writes tests in language of your preference i.e. java, C#, perl, php etc.
- Selenium sever which acts as a proxy between browser and application under test (AUT)
- Host -- where Selenium server is running
- Port -- of Selenium server
- Browser -- where tests are to be executed and
- application URL
- *firefox
- *firefoxproxy
- *pifirefox
- *chrome
- *iexploreproxy
- *iexplore
- *firefox3
- *safariproxy
- *googlechrome
- *konqueror
- *firefox2
- *safari
- *piiexplore
- *firefoxchrome
- *opera
- *iehta
- *custom
- Browser
- Test domain
- Path to html suite (you Selenese tests) and
- Path to result
- If you are using JUnit then you can use ANT plug-in of JUnit to generate test report
- If you are using TestNG then TestNG generates reports for you
Search
Popular Posts
-
Sample Selenium IDE Test Script by Recording: We will use the Mercury Tours website as our web application under test. It is an online flig...
-
Locating GUI Elements Locating elements in WebDriver is done by using the “findElement(By. locator ())” method. The “locator” part of the co...
-
Answer 75 : If you want to see all options available while starting Selenium server then you should use option “-h” while starting Seleni...
-
Answer 60 : While using java you need to create instance of DefaultSelenium class and pass it four parameters – selenium = ne...
-
Answer 51 : Selenium RC is an offering from SeleniumHQ which tries to overcome following draw backs of Selenium IDE – Able to execute...
-
Answer 54 : Selenium core is the core JS engine of Selenium which executes tests on browser, but because of same origin policy it needs t...
-
Answer 18 : You need to use context menu to add check points to your Selenium IDE tests Answer 19 : There are two ways to edit tests...
-
Answer 15 : Yes, you can first record individual test cases and then group all of them in a test suite. Following this entire test suite ...
-
Answer 38 : You could XPath checker - https://addons.mozilla.org/en-US/firefox/addon/xpath-checker/ to test you XPath locators and Fi...
-
Answer 44 : You can change default behavior of Selenium IDE > element locator preference by crating JS file with following– Locato...