Month: January 2015

Static Keyword in Java

January 21, 2015

What is Static Keyword in Java? Static means a field or an method that belongs to the class, rather than to an instance of the class.In simple terms, it means that we can call a static method/field even without creating the object of a  class to which they belongs!.We can have a static method or […]

Read More

Understanding Interface concept of Java in Selenium

January 20, 2015

When we first start with selenium automation our very first line of code comes as :-WebDriver driver = new FireFoxDriver;Have we ever thought what is the meaning of this code of line …WebDriver driver ?Simple answer to this is “WebDriver is an Interface,and we are defining a reference variable(driver) whose type is an interface.Now any object […]

Read More

Understanding important concepts of Java for Selenium

January 17, 2015

We would be highlighting some of the most vital concepts of Java used in Selenium.Hope it assist our readers to learn and incorporate it while creating the Selenium scripts. Final Keyword Interface in Java Meaning of Static in Java  Why we use Final Keyword ? We can use “Final” with a variable, Method or ClassFinal […]

Read More

Understand Keyword Driven Framework by using UFT – (Part 3)

January 15, 2015

We are on the last step of completion of our “Keyword Driven Framework“.we hope you are quiet comfortable with our last tutorials on architecture of Keyword Driven Framework-Part 1 and its various components with working code in Keyword Driven Framework- Part 2, before arriving on the final step.Here we are discussing the last component of our framework i.e our Keyword sheet.We would discuss its structure with […]

Read More

Understand Keyword Driven Framework by using UFT – (Part 2)

January 15, 2015

After our basic overview of Keyword Driven Framework in Part -1 , now we would implement and understand its individual components. Part3 contains the keyword sheet creation and run results.Test Scenario:- We would be using the following scenario to exemplify our Keyword Framework1.Launch web browser 2.Search “uftHelp” on “Google”3.Open the first link of search Result4.Verify that www.uftHelp.com, page is opened5.Search any […]

Read More

Understand Keyword Driven Framework by using UFT – (Part 1)

January 14, 2015

Framework is to automation as beauty is to Nature. Amazing thing about our mother nature is that it brings happiness and rejuvenates our energy level, similarly framework makes our automation task more manageable and brings elegance in coding.Today we would be focusing on the fundamental architecture of the framework. We would be beginning with Keyword driven framework and […]

Read More

Javascript Interview Questions(Part 3)

January 12, 2015

Here comes more JavaScript questions with solutions.Learn more share more, do follow us on FB, Twitter , G+ or LinkedIn.What does NaN function do?The isNaN() function determines whether a value is NaN or not. Coercion inside the isNaN function has interesting rules.When the argument to the function is not isNaN() of type Number.The value is first coerced […]

Read More

Synchronization in UFT

January 8, 2015

We are already done with the synchronization in selenium, today we would discussing the same in UFT.Before starting with the synchronization we would recommend to use Exist,WaitProperty,Sync rather than using Wait. 1.waitThis is used when we want UFT to wait for the specified time, so that AUT completes its current operations.It is like pausing the […]

Read More

All about Locators in Selenium

January 7, 2015

Locators in Selenium?When we created our first IDE script, we found that Editor comes with the tabular structure with 3 columns namely Command, Target and Value.This structure is used by selenium core to simulate user actions on the application under test(AUT).Just a reminder of things again we have :-Command:Is our action on the AUT like […]

Read More

Screenshot using Selenium

January 6, 2015

Scenario:-How we can capture error Screenshot while working with Selenium? Taking Screenshot of nature using Camera Solution:-We would achieve it using the TakeScreenshot Interface.Syntax:-1.Capture Screenshot File sScreenShot = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE); OutputType.FILE:- We have used Interface Output and we have taken the screenshot as “File” typewe can also take screenshot as Byte and  base64 dataExample:- String screenshotBase64 […]

Read More