Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

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!
Labels (3)
1 Reply
Anonymous
Not applicable
Author

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.