I am trying to automate some testing on a 3rd-party site using selenium rc
and facing an issue with file chooser. Going down the issue i found that it was a browser native file chooser issue. I was able to handle that but now the problem is that when I click upload button manually file explorer window opens up and when i try to do that through selenium test case it does not open even if selenium is clicking that button
Another issue is selenium only clicks and is able to find that button if i move my mouse over that button. Here is the related code snippet:
public void testBox() throws Exception {
selenium.setTimeout("10000000000");
selenium.open("/files");
selenium.click("id=login_button_credentials");
selenium.waitForPageToLoad("150000");
while(!selenium.isElementPresent("id=upload_split_arrow"))
{
Thread.sleep(10);
}
selenium.click("id=upload_split_arrow");
while(!selenium.isElementPresent("id=upload_file1"))
{
Thread.sleep(10);
}
selenium.click("id=upload_file1");
Thread.sleep(10000000);
}
Can anyone suggest me some workaround for that?