Friday, July 31, 2015

Support

- https://episteme.cognizant.com/uploads/2014/11/C-R-A-F-T-Selenium-handbook.pdf


- Java documentation:
http://docs.oracle.com/javase/7/docs/api/

- Selenium documentation for Java
http://selenium.googlecode.com/svn/trunk/docs/api/java/index.html


Sunday, July 12, 2015

Handson

- Identify from the dealer names in the Hyundai website

- Implement Craft on Amazon application.

- Connect Excel from Eclipse and read data

Selenium RC to WebDriver migration

- Selenium WebDriver is faster than RC

- Selenium RC has no better support, new elements does not have support.

- Steps to be followed to migrate existing Selenium RC project:

Create Selenium instance from webDriver

WebDriver driver = new FirefoxDriver();

Selenium selenium = new WebDriverBackedSelenium(driver, http://www.goggle.com);

Now use WebDriverBackedSelenium instance in test scripts and see that all test cases are passing.

-

Frames

  • Frame:
  • Here we are trying to click the link, that is inside the frame.

    driver.switchTo().frame("<name of the frame>");
    driver.findElement(By.linkText(<"name of the text>")).click();

    driver.findElementt(By.tagName("frame")).size() --- gives number of frames available

    -

     

    Handling External files


    POM --- Page Object Model

    1/12/2016

    Collecting WebElements and Methods respective each page.

    Writing separate class for business Components(class A) and web elements (class B)