Hey if their is a space to put the path of a file then only the send keys will work fine.
The web element must be a text field to work with sendkeys.and then u can press enter.eg.
e.sendkeys("abc or whatever u want to search",Keys.Enter);
Hope this may work fine..n let me know
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/f6bf1c70-c118-4182-89c9-29c1f67c9c93%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
WebDriver driver = new FirefoxDriver ();
driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
driver.get ("Google Docs URL HERE");
WebElement content = driver.findElement(By.className("kix-lineview"));
System.out.println("found");
while (true) {
System.out.println (content.getText ()); //it works, the content of the document is printed to console
content.sendKeys("abc"); // it does not work: the content does not change
}
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/fb4d912a-8e72-4a8a-834a-c072c20ade1f%40googlegroups.com.