bermi / sauce-connect-launcher

Downloads and launches an instance of Sauce Connect Selenium Proxy https://wiki.saucelabs.com/display/DOCS/Sauce+Connect+Proxy
72 stars 70 forks source link

Can I Use A ParentTunnel with SauceConnect Launcher #111

Open mattc41190 opened 7 years ago

mattc41190 commented 7 years ago

What is the syntax for this. I use Sauce connect launcher via a WDIO service and have added the username of the owner for the parent tunnel in my browser caps, but so far no luck. Does this package interfere with parent tunnel?

jlipps commented 7 years ago

@bromaster might know

jlipps commented 7 years ago

Whoops, meant to ping @christian-bromann, sorry @bromaster!

mattc41190 commented 7 years ago

Will ping him in gitter

christian-bromann commented 7 years ago

haha .. I need to get this handle 😆

@mattc41190 if you want to use the parent tunnel you need to specify this is in your capabiltiies. See also https://support.saucelabs.com/customer/portal/articles/2005364-sharing-the-parent-account-tunnel

mattc41190 commented 7 years ago

I think I am specifying. Is this syntax incorrect?

modeOptionsArray = [{ parentTunnel: 'homeaway', loggingPrefs: { browser: 'ALL', client: 'ALL' }, browserName: 'chrome', ETC... }]

screen shot 2016-12-15 at 10 26 34 am
archlichking commented 7 years ago

you can add these two config to your sauce-connect-launcher

 "tunnelIdentifier": "FAKE_TUNNEL_ID",
 "sharedTunnel": true,

and in your browser capabilities, add

"tunnel-identifier": "FAKE_TUNNEL_ID",
"parent-tunnel": "FAKE_PARENT_SAUCELABS_ID"

change all FAKE stuff to real value and you're good to go