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...
-
Selenium Commands – Selenese Selenese commands can have up to a maximum of two parameters: target and value. Parameters are not required al...
-
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 24 : CSS location strategy can be used with Selenium to locate elements, it works using cascade style sheet location methods in wh...
-
Answer 44 : You can change default behavior of Selenium IDE > element locator preference by crating JS file with following– Locato...
-
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 48 : Use pause command which takes time in milliseconds and would pause test execution for specified time – pause ( waitTime )...
-
Answer 69 : You can use Selenium RC on any system which is capable I running Java. Hence you can use Selenium RC on MAC and UNIX machines...
-
Answer 27 : You can use “store” command to achieve this. You can save result of an evaluation in a variable and use it later in your Sele...