Why Browserstack provides new IP everytime to POST and how to overcome that? -
- we run scripts cli. required us. use services browserstack, have download binary , start tunnel using binary. executing binary , creates tunnel between local machine , system. execute binary “browserstacklocal.exe --key accesskey”.
- once tunnel created, can execute scripts. , in scripts try access site http://username:access key@hub.browserstack.com:80/wd/hub. actual command used in scripts “webdriver.remote(command_executor='http://username:access key@hub.browserstack.com:80/wd/hub',desired_capabilities=desired_cap)”.
- that’s all. have do. rest whatever happens done browser stack binary internally.
- so when start script, fetches http://username:access key@hub.browserstack.com:80/wd/hub. test fails error displayed in command prompt :
date: fri, 31 mar 2017 03:35:04 gmt source ip: ip url: post http://some ip address/wd/hub/session ip changes of time category: uncategorized urls reason: user requested appliance: ip notification: err _continue_unacknowledged tried accessing link manually, , shows me block notification, button "accept , continue". if click "accept , continue", shows site blocked error. please unblock site, can unblock on automation.
so everytime run script, uses different ip "url: post http://some ip address/wd/hub/session "
now cannot ask org unblock each , every ip generated because huge list changes everyday.
when try ping hub.browserstack.com, not working.request time out. have ub.browserstack.com unblocked still cannot access this.
so issue ? how cna overcome problem of ip?
i used browserstack nightwatch , there works fine, not ip post , access remote site.
why happens python binding?
bhavesh
python binding resolves dns , makes subsequent requests on ip . altough don't see other language bindings it. think can try workaround this. can pass resolve_ip=false
when setting remote connection hub
from selenium.webdriver.remote.remote_connection import remoteconnection driver = webdriver.remote( command_executor=remoteconnection(hub_url, resolve_ip=false), desired_capabilities=desired_cap)
let me know if works.
Comments
Post a Comment