Skip to main content

iphone driver doesn't work

  4 posts   Feedicon  
Replies: 3 - Last Post: March 31, 2013 15:35
by: asirobaba
showing 1 - 4 of 4
Posted: March 13, 2013 18:27 by asirobaba
I'm using 0.9.98 verison, seems like iPhone webdriver is supported since 9.90 version, but when driver is set to "iPhone" I get the following exception:
net.thucydides.core.webdriver.WebdriverAssertionError: Could not instantiate class org.openqa.selenium.iphone.IPhoneDriver
at net.thucydides.core.webdriver.WebDriverFacade.newDriverInstance(WebDriverFacade.java:90)
at net.thucydides.core.webdriver.WebDriverFacade.newProxyDriver(WebDriverFacade.java:82)
at net.thucydides.core.webdriver.WebDriverFacade.getProxiedDriver(WebDriverFacade.java:54)
at net.thucydides.core.webdriver.WebDriverFacade.openIgnoringHtmlUnitScriptErrors(WebDriverFacade.java:123)
at net.thucydides.core.webdriver.WebDriverFacade.get(WebDriverFacade.java:117)
at net.thucydides.core.pages.PageObject.openPageAtUrl(PageObject.java:638)
at net.thucydides.core.pages.PageObject.open(PageObject.java:539)
at com.bingo.pages.LoginPage.openWithParameters(LoginPage.java:63)
at com.bingo.steps.ChatSteps.login(ChatSteps.java:14)
at com.bingo.steps.ChatSteps$$EnhancerByCGLIB$$3f486412.CGLIB$login$0(<generated>)
at com.bingo.steps.ChatSteps$$EnhancerByCGLIB$$3f486412$$FastClassByCGLIB$$33ad3a60.invoke(<generated>)
at net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228)
at net.thucydides.core.steps.StepInterceptor.executeTestStepMethod(StepInterceptor.java:280)
at net.thucydides.core.steps.StepInterceptor.runTestStep(StepInterceptor.java:254)
at net.thucydides.core.steps.StepInterceptor.testStepResult(StepInterceptor.java:125)
at net.thucydides.core.steps.StepInterceptor.intercept(StepInterceptor.java:51)
at com.bingo.steps.ChatSteps$$EnhancerByCGLIB$$3f486412.login(<generated>)
at com.bingo.jbehave.ChatDefinitionsSteps.givenUserIsLoggedIntoStream(ChatDefinitionsSteps.java:35)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jbehave.core.steps.StepCreator$ParameterisedStep.perform(StepCreator.java:550)
at org.jbehave.core.embedder.StoryRunner$FineSoFar.run(StoryRunner.java:499)
at org.jbehave.core.embedder.StoryRunner.runStepsWhileKeepingState(StoryRunner.java:479)
at org.jbehave.core.embedder.StoryRunner.runScenarioSteps(StoryRunner.java:443)
at org.jbehave.core.embedder.StoryRunner.runCancellable(StoryRunner.java:305)
at org.jbehave.core.embedder.StoryRunner.run(StoryRunner.java:219)
at org.jbehave.core.embedder.StoryRunner.run(StoryRunner.java:180)
at org.jbehave.core.embedder.StoryManager$EnqueuedStory.call(StoryManager.java:229)
at org.jbehave.core.embedder.StoryManager$EnqueuedStory.call(StoryManager.java:201)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Posted: March 20, 2013 13:55 by encius
Do you have iPhone emulator on the same machine? If not, it seems to me that you have to start the remoteWebDriver with iPhone capabilities. Someone correct if I'm wrong
Posted: March 21, 2013 14:39 by asirobaba
Yes, I don't have emulator on local machine.
I've specified webdriver.remote.url to the host where "iOS webdriver" is running
As per Thucydides documentation, " Thucydides will use the webdriver.driver property to determine which browser to run remotely." it should work because "iPhone" capabilities are taken from "webdriver.driver" property
Posted: March 31, 2013 15:35 by asirobaba
Seems like it was iPhone driver problem, after device was restarted it works fine
Replies: 3 - Last Post: March 31, 2013 15:35
by: asirobaba
 
 
Close
loading
Please Confirm
Close