I have an issue with selenium webdriver and i would be very grateful if anyone can help me
Environment:
- selenium-server-standalone-2.31.0.jar / selenium-server-standalone-2.35.0.jar
- IEDriverServer.exe (tried version 2.28 - 2.35)
Sample code:
WebElement href = this.findElement(By.xpath("//A"));
href.sendKeys(Keys.ENTER);
href.click();
Problem: A fix to any of this would help me
- href.sendKeys() successfully simulates user click, but does not wait for page to load
- href.click() fails to simulate user click, but successfully wait for page to load
- I have search for the source code of .click() method to try to manually create a waitForPageToLoad function, but i haven't been able to find it.
I know i am not giving to much information because the application I am running the test against is internal, so I cant share a link for debugging. But any idea or previous experience with similar problems that could help me figure out what is going on would be appreciate it.
Right now, I have to do both sendKeys and click to achieve the expected results.