|
Selenium
RC
|
Selenium Web driver
|
|
Selenium RC is slower since it uses a
JavaScript program called Selenium Core. This Selenium Core is the one that
directly controls the browser, not you.
|
Web Driver is faster than Selenium RC
since it speaks directly to the browser uses the browser’s own engine to
control it.
|
|
Selenium Core, just like other
JavaScript codes, can access disabled elements.
|
Web Driver interacts with page
elements in a more realistic way.
|
|
Selenium RC’s API is more matured but
contains redundancies and often confusing commands.
|
Web Driver’s API is simpler than
Selenium RC’s. It does not contain redundant and confusing commands.
|
|
Selenium RC cannot support the
headless HtmlUnit browser. It needs a real, visible browser to operate on.
|
Web Driver can support the headless
HtmlUnit browser.
|
|
Selenium RC Has Built-In Test Result
Generator. Selenium RC automatically generates an HTML file of test
results.
|
Web Driver has no built-in command
that automatically generates a Test Results File.
|
|
Cannot move mouse with it
|
Can move mouse cursor
|
|
No Listeners
|
Implementation of Listeners
is provided
|
|
Cannot test iPhone/Android
applications
|
Can test iPhone/Android
applications
|
|
Works on almost all
browsers.Does not work on latest version of Firefox/IE
|
Works on latest versions of
almost all browsers - Firefox, IE(6,7,8,9,10), Opera, Chrome
|
What Is a Package? A package is a namespace that organizes a set of related classes and interfaces. Conceptually you can think of packages as being similar to different folders on your computer. You might keep HTML pages in one folder, images in another, and scripts or applications in yet another. Because software written in the Java programming language can be composed of hundreds or thousands of individual classes, it makes sense to keep things organized by placing related classes and interfaces into packages. -> Right click on the Project (Make sure you should right click on project, because you are creating package inside the project). -> Go to New. -> Click on Package. -> In New Java Package window, enter package name in Name text box. -> Now click on Finish . -> Now you can see the package inside the project at Project Explorer area. Now your package is ready.
Comments
Post a Comment