capabilities.setCapability(CapabilityType.VERSION,"4.2");
capabilities.setCapability(CapabilityType.PLATFORM, "MAC");
capabilities.setCapability("device", "Android" );
capabilities.setCapability("app",".... my apk path");
capabilities.setCapability("app-package", "my package");
capabilities.setCapability("app-activity", "my Activity");
driver = new RemoteWebDriver(new URL("http://127.0.0.1:4723/wd/hub"), capabilities);
driver.switchTo().window((String)driver.getWindowHandles().toArray()[windowIndex]);
org.openqa.selenium.WebDriverException: Not yet implemented. Please help us: http://appium.io/get-involved.html (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 8 milliseconds
Build info: version: '2.32.0', revision: '6c40c18', time: '2013-04-09 17:23:22'
System info: os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.8.4', java.version: '1.7.0_21'
Session ID: 58916397-0085-49f5-8ff9-440bdcc4cd69
Driver info: org.openqa.selenium.remote.RemoteWebDriver
Capabilities [{platform=LINUX, databaseEnabled=false, javascriptEnabled=true, browserName=Android, takesScreenshots=true, webStorageEnabled=false, version=4.1}]
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:187)
at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:145)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:554)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:569)
at org.openqa.selenium.remote.RemoteWebDriver.getWindowHandles(RemoteWebDriver.java:432)
--
http://appium.io
---
You received this message because you are subscribed to the Google Groups "Appium-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to appium-discus...@googlegroups.com.
Visit this group at http://groups.google.com/group/appium-discuss?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
capabilities.setCapability(CapabilityType.BROWSER_NAME, "selendroid");
capabilities.setCapability(CapabilityType.VERSION,"4.2");
capabilities.setCapability(CapabilityType.PLATFORM, "MAC");
capabilities.setCapability(CapabilityType.BROWSER_NAME, "android");
capabilities.setCapability(CapabilityType.VERSION,"4.2");
capabilities.setCapability(CapabilityType.PLATFORM, "MAC");
capabilities.setCapability("device", "Android" );
code:
driver.switchTo().window((String)driver.getWindowHandles().toArray()[windowIndex]); -- same exception at this line .
capabilities.setCapability(CapabilityType.BROWSER_NAME, "selendroid");
capabilities.setCapability("device", "Android" );
org.openqa.selendroid.ServerInstrumentation} from pid=2178, uid=2178 not allowed because package com.amazon.mShop.android.selendroid does not have a signature matching the target
Visit this group at http://groups.google.com/group/appium-discuss.
For more options, visit https://groups.google.com/d/optout.
driver.switchTo(). doenot give interlligence for context and using context in code it quit unexpectedly.whether to use switchTo.window or context or driver.context().I have tried with the following to switch WEBVIEW mode and failed:
************
Set<String> contextNames = driver.getContextHandles();
System.out.println("@test");
for (String contextName : contextNames) {
System.out.println(contextName);
if (contextName.contains("WEBVIEW")){
driver.context(contextName);
}
}
Error: java.lang.NullPointerException at io.appium.java_client.AppiumDriver.execute(AppiumDriver.java:78)********
driver.switchTo().window("WEBVIEW");Error:not yet implemented in this context try switching into or out of web view**********Could you please suggest me what to use on this for switching into webview mode so that i have to load the URL in this?
On Tue, May 20, 2014 at 10:13 AM, Isaac Murchie <is...@saucelabs.com> wrote:
On Mon, May 19, 2014 at 9:33 PM, Gobi Irtt <mgobi...@gmail.com> wrote:
Is there any sample java code exist for switchTo.context("webview") i am struck at this point. If this resolved i am able to run with all test cases/Yes thanks! now came to know it is all possible to do with Appium!
For this i need to switch into webview mode and driver.get("url") will change the url of the webview.
On Tue, May 20, 2014 at 9:50 AM, Isaac Murchie <is...@saucelabs.com> wrote:Yes, that is totally possible. See the docs for mobile web.On Mon, May 19, 2014 at 9:17 PM, Gobi Irtt <mgobi...@gmail.com> wrote:
Since i am able to get webview and its element and able to perform events on it, I need to load the URL into current webview. Is it possible to do?Ok Thanks! I will check.I need to clarify the following. Is it possible to load dynamic URL in webview for hybrid applications?
Such that i dont want to cahgne the URL in app everytime and reload the app into appium for testingOn Tue, May 20, 2014 at 9:23 AM, Isaac Murchie <is...@saucelabs.com> wrote:
Just use the Appium program (either from npm or from source via GitHub. Selendroid is bundled with it.On Mon, May 19, 2014 at 8:50 PM, Gobi Irtt <mgobi...@gmail.com> wrote:
For which jar i need to refer to work with this? I am writing common test case for Android(Selendroid) and iOS(Appium 1.0) so refered this files.Could you please let me know what are the files needed to refer for context() to work with appium?