Passing Selenium Component Object

One Star

Passing Selenium Component Object

I'm building a Selenium component, and need a little assistance with the INPUT and OUTPUT connectors.
The selenium component works fine, but I want to pass the WebDriver object to the next component- which is a GET component, and will get a web page.

In my main Selenium component, I'm storing the driver in a global variable
globalMap.put("conn_<%=cid %>", driver_<%=cid %>);

And then in my GET component, I'm retrieving the driver from the global variable
driver_<%=cid %> = (org.openqa.selenium.firefox.FirefoxDriver)globalMap.get("<%=conn %>");
This part works.

What doesn't work is the connectors - I can't connect my main selenium component to my GET component.
Main Selenium Component:
<CONNECTORS>
<CONNECTOR CTYPE="SUBJOB_OK" />
<CONNECTOR CTYPE="SUBJOB_ERROR" />
<CONNECTOR CTYPE="COMPONENT_OK" />
<CONNECTOR CTYPE="COMPONENT_ERROR" />
<CONNECTOR CTYPE="RUN_IF" />
</CONNECTORS>

GET Selenium Component:
<CONNECTORS>
<CONNECTOR CTYPE="SUBJOB_OK" MAX_INPUT="1" />
<CONNECTOR CTYPE="SUBJOB_ERROR" MAX_INPUT="1" />
<CONNECTOR CTYPE="COMPONENT_OK"/>
<CONNECTOR CTYPE="COMPONENT_ERROR"/>
<CONNECTOR CTYPE="RUN_IF"/>
</CONNECTORS>

What am I doing wrong?
Thanks!
One Star

Re: Passing Selenium Component Object

I believe I answered my own question, or at least got it to work by making the GET Selenium Component startable. This makes sense since I'm not passing data, but passing an object.