Friday, May 4, 2012

Linkedin form filling using Selenium RC

package tests; import com.thoughtworks.selenium.*; import java.util.regex.Pattern; class Linkedin{ public static Selenium selenium = null; public static void testUntitled() throws Exception { selenium = new DefaultSelenium("localhost", 4444, "*chrome", "http://www.linkedin.com//"); selenium.start(); selenium.open("//"); selenium.type("id=firstName-coldRegistrationForm", "santhosh"); selenium.type("id=lastName-coldRegistrationForm", "shinde"); selenium.type("id=email-coldRegistrationForm","santosh_s666@yahoo.com"); selenium.type("id=password-coldRegistrationForm", "santhosh"); selenium.click("id=btn-submit"); selenium.waitForPageToLoad("30000"); } public static void main(String args[]){ try { Linkedin.testUntitled(); } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } } }

1 comment:

  1. SWIFT Interview questions on

    http://testwithus.blogspot.in/p/swift.htm

    For selenium solution visit
    http://testwithus.blogspot.in/p/blog-page.html


    For QTP interview questions

    http://testwithus.blogspot.in/p/qtp-questions.html


    www.searchyourpolicy.com


    ReplyDelete