If you really need to get the Selenium instance, you could get it from the
test class.
For example, look at the JUnit test cass
public abstract class TelluriumJUnitTestCase extends
BaseTelluriumJavaTestCase {
@BeforeClass
public static void setUpForClass() {
if (tellurium == null) {
tellurium = TelluriumSupport.addSupport();
tellurium.startServer(customConfig);
connector = (SeleniumConnector) getCurrentConnector();
}
}
Then, you could get the CustomSelenium instance,
class SeleniumConnector implements Configurable {
private CustomSelenium sel
...
}
where CustomSelenium extends the DefaultSelenium class, i.e.,
class CustomSelenium extends DefaultSelenium {
......
}
Thanks,
Jian
On Mon, Jan 17, 2011 at 9:46 PM, Jian Fang <[email protected]> wrote:
> Why not use the following method to call any Selenium APIs?
>
> customDirectCall(String method, Object[] args)
>
> Thanks,
>
> Jian
>
>
> On Mon, Jan 17, 2011 at 4:54 PM, Manoj Chavan <[email protected]>wrote:
>
>> Hi,
>>
>> I am using flash-selenium plugin to test for embedded flash plugin for
>> charts.
>> The method FlashSelenium constructor requires a selenium handle to look
>> for the
>> flash object. Any suggestions on how to identify this embedded flash via
>> Groovy?
>> Or how do I get the selenium handle from 'connectURL()'?
>>
>> The flash object is inside of <embed> tag.
>>
>> Regards,
>>
>> Manoj
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "tellurium-users" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected]<tellurium-users%[email protected]>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/tellurium-users?hl=en.
>>
>>
>
--
You received this message because you are subscribed to the Google Groups
"tellurium-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/tellurium-users?hl=en.