Monday, 17 December 2012

Selenium Popup hamdlimg

import com.thoughtworks.selenium.DefaultSelenium;


public class popupwindow extends Driver
{

    public static void main(String[] args) throws Exception
    {
        s=new DefaultSelenium("localhost",4444,"*firefox","https://www.onlinesbi.com/");
        s.start();
        s.open("/");
        s.windowMaximize();
     fn_launch("https://www.onlinesbi.com/");    
     s.click("link=Net Banking Branches");
     s.waitForPopUp("aboutus","5000");
     s.selectWindow("name=aboutus");
     Thread.sleep(5000);
     s.click("name=Submit22");
   
    
    }

}

No comments:

Post a Comment