About Me

Page views

Powered by Blogger.

Followers

Friday, 22 May 2015

So How to get any text is available in HTML Page Source Code using Selenium WebDriver. Steps :  Define Firefox Browser and open the Firefox Browser  Open the URL (Website)  Identify the number of Links on webpage and assign into Webelement List Count the total Link list on...

Sunday, 17 May 2015

So how to handle javascript alerts, confirmation and prompts? JavaScript popups are generated by web application and hence they can be easily controlled by the browser. Webdriver offers the ability to cope with javascript alerts using Alerts API // Get a handle to the open alert, prompt or confirmation Alert alert = driver.switchTo().alert(); Alert is an interface. There below are the methods that...

Saturday, 9 May 2015

Creation of Sample TestNG project Let us begin with the creation of TestNG project in eclipse IDE. Step 1: Click on the File option within the menu -> Click on New -> Select Java Project. Step 2: Enter the project name as “DemoTestNG” and click on “Next” button. As a concluding step, click...
Following is the list of the most useful and favorable annotations in TestNG: AnnotationDescription @TestThe annotation notifies the system that the method annotated as @Test is a test method @BeforeSuiteThe annotation notifies the system that the method annotated as @BeforeSuite ...
TestNG is the framework which is very useful to use with selenium WebDriver. The main reason behind TestNG's popularity is we can create and configure test case and test suite very easily using many different annotations of TestNG. Annotations are those things in TestNG which guides it for...
So How To Create And Run First TestNG-WebDriver Test Case In Eclipse ? Step 1 : Create New Project And Package Step 2 : Add TestNG Library For adding TestNG library, Go to your project's Properties -> Java Build Path -> Libraries Tab. Click on Add Library button -> Select TestNG from...

Popular Posts

Copyright © 2025 Learn Selenium Yourself | Powered by Blogger
Design by Duan Zhiyan | Blogger Theme by NewBloggerThemes.com