Raja, thanks that you are trying help me but I've seen this FAQ:
Q: How do I execute Javascript directly?
A: We believe that most of the time there is a requirement to execute
Javascript there is a failing in the tool being used: it hasn't
emitted the correct events, has not interacted with a page correctly,
or has failed to react when an XmlHttpRequest returns. We would rather
fix WebDriver to work consistently and correctly than rely on testers
working out which Javascript method to call.
We also realise that there will be times when this is a limitation. As
a result, for those browsers that support it, you can execute
Javascript by casting the WebDriver instance to a JavascriptExecutor.
In Java, this looks like:
WebDriver driver; // Assigned elsewhere
JavascriptExecutor js = (JavascriptExecutor) driver;
js.executeScript("return document.title");
Other language bindings will follow a similar approach. Take a look at
the UsingJavascript page for more information.
Q: Why is my Javascript execution always returning null?
A: You need to return from your javascript snippet to return a value,
so:
js.executeScript("document.title");
will return null, but:
js.executeScript("return document.title");
will return the title of the document.
Unfrotunately, I don't know how can I use it. Can you help me with
this on this page:
http://demos.telerik.com/aspnet-ajax/editor/examples/default/defaultcs.aspx
I'd like to put another text via Selenium to this Editor, but
how... ?
On 16 Sie, 14:50, Raja sankar <
errajasankarc...@gmail.com> wrote:
> You can use the javascript executer in SE 2. There are examples in this list
> how to use it. Do a search.
>
> Rajasankar
>
> ராஜசங்கர்
>