Friday, July 10, 2015

Selenium(WebDriver) Benefits/Notes

WEbEx training notes

Selenium WebDriver Notes(includes advantageous):

- Selenium is for Web Based applications and QTP is for Web based and Desktop based applications

- Selenium will handle desktop applications using some third party

- Selenium supports around 6 languages but QTP supports only Vbscripting.
Simply download library files from google and continue the existing script(even if it is written in other language).

- Selenium IDE(add on of firefox), RC, Web Driver and Grid.

- Selenium uses Javascript drivers to connect Selenium with browsers. Selenium+WebDriver.
WebDriver is also available for Mobile Testing, we have Andriod and Iphone driver.

- Steps to download addons: FireFox -> Ctrl+Shift+A (it will go to Extensions page) -> download Firepath and Firebug.

- Firebug - CSS
  FirePath - Edit, Impact and generate Xpath.

- For testing use: www.myContactForm.com

- Go to Seleniumhq.org/download -- to download java driver to work on Selenium.

- Go to Eclipse Project -> Properties-> Java Build Path- >Libraries ->Add external jar.(the ones that we downloaded from the Seleniumhq.org site).(there should be 39 files that should get added)

- Eclipse is not a kind of installation file, you just see .exe file in the zip file(Exclipe download file). Everytime you wanted to open the Eclipse you just need to run .exe file.

- When ever you start programming on identifying objects, right click on the object and select inspect by firepath option. That way you will come to know the xpath of the object. You could use locators.

- <driver object>.navigate().back(); --- this is navigation command, that is used to navigate back.

- <driver object>.navigate().forward();

- <driver object>.manage().window().maximize(); -- this will maximize the browser window
Mention this under the firefox driver code. But if you are using profile code, dont use it as it will automatically maximizes.

- To take control on mouse over or keyboard use Action Class object.

- Verification code in web page, cannot be automated using any of the automation tools.
 
  Using the OCR jar file we should be able to identify such objects.

-

-

3 comments:

  1. Thanks for your informative blog!!! Keep on updating your with such awesome information.
    selenium training in bangalore|

    ReplyDelete
  2. Thanks for one marvelous posting! I enjoyed reading it; you are a great author. I will make sure to bookmark your blog and may come back someday. I want to encourage that you continue your great posts.
    big data training in bangalore
    hadoop training in chennai

    ReplyDelete
  3. Your technical information related with java programming is very useful and interesting. Also share updated details about java in your website. Thanks for sharing this article.

    oracle training in chennai

    oracle training in velachery

    oracle dba training in chennai

    oracle dba training in velachery

    ccna training in chennai

    ccna training in velachery

    seo training in chennai

    seo training in velachery

    ReplyDelete