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.

Calling Talend Open Studio Users

The first 100 community members completing the Open Studio survey win a $10 gift voucher.

Start the survey

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog

How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration

Read

6 Ways to Start Utilizing Machine Learning with Amazon We Services and Talend

Look at6 ways to start utilizing Machine Learning with Amazon We Services and Talend

Blog