I am trying to automate my web application using Selenium. I am able to log in by using Selenium, but after that one web applet is generated where I can't get the handle of that application.
Is it really possible to get the automation?
I am trying to automate my web application using Selenium. I am able to log in by using Selenium, but after that one web applet is generated where I can't get the handle of that application.
Is it really possible to get the automation?
Not that I know of, the Selenium WebDriver itself is, as you've found out, not going to get you any where with Java Applets.
For the Java language though, the Robot
class might help.
http://docs.oracle.com/javase/7/docs/api/java/awt/Robot.html
Sorry, I know its too late :). I assume when you say "one web applet is generated", it means a new pop-up is generated. (correct me if I'm wrong)
I use to switch between window handles like this,
//Save your current(i.e old) handle //Find new window & Get the new handle and switch window
string currentHandle = driver.CurrentWindowHandle;
PopupWindowFinder finder = new PopupWindowFinder(driver);
string newHandle = finder.Click(driver.FindElement(By.Id("primarycontactid")));
driver.SwitchTo().Window(newHandle);