ExecuteScript return null

99 views
Skip to first unread message

Sreeram

unread,
Sep 12, 2011, 11:51:46 PM9/12/11
to Selenium Users
Hi,

I am Using sfapi (Selenium flex api) interact with flex objects via
javascript.

Problem:
When I test javascript snippet inside firefox browser using firebug it
gives me correct output. But when I execute the same script from
webdriver, executeScript() returns null;

Following is the maven depency I use for webdriver:
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>2.5.0</version>
</dependency>

Steps to reproduce:
Compile flexstore4 application with sfappi libraries and then from
firefox (with firebug enabled) execute following script:
document.getElementById("movie")['getFlexProperty']('label=Video',
'selected'), where "movie" is the object id of flex application in a
html page.

Firebox console displays "False"
Webdriver.executeScript returns null.

Help!

Mark Collin

unread,
Sep 13, 2011, 10:25:59 AM9/13/11
to seleniu...@googlegroups.com
You need to have a return in your JavaScript snippet now.

Hi,

Help!

--
You received this message because you are subscribed to the Google Groups
"Selenium Users" group.
To post to this group, send email to seleniu...@googlegroups.com.
To unsubscribe from this group, send email to
selenium-user...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/selenium-users?hl=en.


--
This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited.

If you have received this email in error please notify postm...@ardescosolutions.com

Reply all
Reply to author
Forward
0 new messages