Skip to content
This repository has been archived by the owner on Jul 29, 2024. It is now read-only.

Appium: can't call setNetworkConnection #2969

Closed
ghost opened this issue Feb 23, 2016 · 8 comments
Closed

Appium: can't call setNetworkConnection #2969

ghost opened this issue Feb 23, 2016 · 8 comments

Comments

@ghost
Copy link

ghost commented Feb 23, 2016

I've set up my environment with Protractor + Appium + Jasmine to run my JavaScript based tests, followed this guide. This is working OK, but I cannot call the network API available in Appium:

https://github.com/appium/appium/blob/master/docs/en/writing-running-appium/network_connection.md

browser.driver does not have a method call "setNetworkConnection".

I guess it's Protractor related? I'm using TypeScript, and setNetworkConnection is not available in the TSD. I've also tried to cast browser.driver to any and then call this method, but then I get an error.

@NickTomlin
Copy link
Contributor

Hi there!

Your question is better suited for StackOverflow or Gitter. Please ask a question there with the 'protractor' tag or post in the Gitter Channel to get help.

From the the getting help section of the README:

Please ask usage and debugging questions on StackOverflow (use the "protractor" tag) or in the Angular discussion group. (Please do not ask support questions here on Github.)

Thanks!

@sjelin
Copy link
Contributor

sjelin commented Feb 24, 2016

Ok, so the problem here is that browser.driver is an instance of WebDriver/webdriver, and that implementation doesn't have setNetworkConnection or any analogous commands. It may have such a command in the future though, since the java and python clients do have the command.

@ghost
Copy link
Author

ghost commented Feb 24, 2016

So @NickTomlin this is not a support question. It's a missing feature... I think this issue should be reopened.

@juliemr
Copy link
Member

juliemr commented Feb 24, 2016

@rolandoldengarm you're right - follow along with #1940 for updates on the feature.

@sjelin
Copy link
Contributor

sjelin commented Feb 25, 2016

Opening because this is a missing feature, closing because it's a duplicate 😉

Also, to Nick's credit, we get a lot of support questions and this sounded a lot like one

@NickTomlin
Copy link
Contributor

@rolandoldengarm sorry I totally mistook this question. Thanks for picking this up @sjelin and @juliemr 😄

@toddhalfpenny
Copy link

Hi. Not wanting to be a pain, sorry if I am. I'm just wondering if this feature is something that is likely to be included in the future? I see this is closed as is #1940 and so I'm uncertain - perhaps there's an alternative method that I've missed.

@sjelin
Copy link
Contributor

sjelin commented Apr 11, 2016

It is likely to be included in the future, stay tuned!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants