-
Notifications
You must be signed in to change notification settings - Fork 158
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Selenium fails in Mavericks and iOS7 Simulator #169
Comments
have you tried the refactor branch? |
I have tried it just now. Build is success, but build tests are not. Also the outcome is the same as described when executing the server. Do I have to configure something to make build tests work or I'm doing something wrong? |
can you make sure it's not the same problem as here: |
I deleted all the files in that folder and results different from before but not good: That happens in during the tests in the build process:
After that, there is a popup which says "It cannot install the application inside the simulator". I have done the chmod command and perms are ok. Once started the server, in address http://localhost:4444/wd/hub/, it shows:
Thanks for the quick reply! |
I fixed a killall bug on the refactor branch. Please re-open if you continue to have issues. |
Where will I get the updated jar with fix to run on Mavericks? If should I take the refactor branch and build it myself, could somebody please give me the steps? Issues am facing right now: What steps I have tried:
$ mvn pom.xml
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.069s
[INFO] Finished at: Mon Nov 25 15:02:02 GMT+05:30 2013
[INFO] Final Memory: 2M/81M
[INFO] ------------------------------------------------------------------------
[ERROR] The goal you specified requires a project to execute but there is no POM in this directory (/Users/basavar). Please verify you invoked Maven from the correct directory. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MissingProjectException
Please help. |
it's a standard maven project. run mvn package in the root directory to build the artifacts. |
Did you remember to run |
@skyzyx , so are you able to run tests on mavericks ios simulator now? I dont see refactor branch anymore here. Could you give me the steps you followed? |
the refactor branch has been merged back to the 'dev' branch, use that one now |
when can we expect the downloadable jar release with the fix then? @skyzyx, if you have built the jar (ios-server-0.x.x-jar-with-dependencies.jar), could you please share it? I tried downloading the dev branch as zip and building. And I get this error Note: I dont know maven. :( |
Here's what I'm running:
Initial stuff:rm -rf ~/.ios-driver/ && \
sudo chmod 666 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator*.sdk/Applications/MobileSafari.app/Info.plist && \
sudo chmod -R a+rw /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator*.sdk/Applications/MobileSafari.app && \
sudo chmod a+rw /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator*.sdk/Applications/ Install Maven from MacPortssudo port install maven3 && \
sudo port select --set maven maven3 Build ios-drivergit clone git@github.com:ios-driver/ios-driver.git && \
cd ios-driver && \
git checkout dev && \
git submodule update --init && \
mvn clean package Start the serverjava -jar server/target/ios-server-*-jar-with-dependencies.jar -simulators |
@skyzyx , you are awesome! Thanks much for your time. But still, am stuck at the same place, mvn clean package. :( Here is what I get when I follow the exact steps you have given: [INFO] 1 error And more info on my env: $ java -version $ xcodebuild -version Mac version: Mavericks 10.9 |
@basavaraj1985 It is because the JAVA_HOME is not taken properly by the mvn script. You can directly put the JAVA_HOME environment variable into the mvn script. It fixed my issue. |
when i run 'mvn clean package' i don't get the file server/target/ios-server-*-jar-with-dependencies.jar. instead i get...
the standalone version does not know about the -simulator flag, but seems to be running with the simulator set to true. the other doesn't want to run (no main manifest attribute, in server/target/ios-server-0.6.6-SNAPSHOT.jar). so i run the standalone jar and get this:
and then when i run the webdriver code here:
this happens in the driver terminal.
and this is the error from the script above...
any help would be appreciated. |
@QuantumGeordie, same observations till running my web driver code. Once i run my webdriver code, I see this on console:
2014-03-07 12:15:56.060:INFO::jetty-7.x.y-SNAPSHOT
2014-03-07 12:15:56.147:INFO::Started SelectChannelConnector@0.0.0.0:5555
20:22:285 INFO InstrumentsApple.moveMobileSafariAppOutOfInstallDir temporarily moving MobileSafari out of the install directory, if you need to restore it yourself use:
$ cp -rf /Users/basavar/.ios-driver/safariCopies/MobileSafari-7.0.3.app /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk/Applications/MobileSafari.app
org.openqa.selenium.WebDriverException: iPhone variation incompatible with SDK 7.0.3, a compatible variation is Retina4
Build info: version: 'unknown', revision: 'unknown', time: 'unknown'
System info: os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.9', java.version: '1.7.0_40'
Driver info: driver.version: IOSDualDriver
at org.uiautomation.ios.utils.SimulatorSettings.getSimulateDeviceValue(SimulatorSettings.java:254)
at org.uiautomation.ios.utils.SimulatorSettings.setVariation(SimulatorSettings.java:166)
at org.uiautomation.ios.server.simulator.IOSSimulatorManager.setVariation(IOSSimulatorManager.java:194)
at org.uiautomation.ios.server.simulator.InstrumentsApple.start(InstrumentsApple.java:123)
at org.uiautomation.ios.server.InstrumentsBackedNativeIOSDriver.start(InstrumentsBackedNativeIOSDriver.java:44)
at org.uiautomation.ios.server.services.IOSDualDriver.start(IOSDualDriver.java:105)
at org.uiautomation.ios.server.ServerSideSession.start(ServerSideSession.java:231)
at org.uiautomation.ios.server.command.uiautomation.NewSessionNHandler.safeStart(NewSessionNHandler.java:82)
at org.uiautomation.ios.server.command.uiautomation.NewSessionNHandler.handle(NewSessionNHandler.java:49)
at org.uiautomation.ios.server.command.BaseCommandHandler.handleAndRunDecorators(BaseCommandHandler.java:104)
at org.uiautomation.ios.server.servlet.IOSServlet.getResponse(IOSServlet.java:137)
at org.uiautomation.ios.server.servlet.IOSServlet.process(IOSServlet.java:81)
at org.uiautomation.ios.server.servlet.IOSServlet.doPost(IOSServlet.java:56)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:533)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:475)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:224)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:920)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:403)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:184)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:856)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
at org.eclipse.jetty.server.handler.HandlerList.handle(HandlerList.java:47)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:114)
at org.eclipse.jetty.server.Server.handle(Server.java:352)
at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:596)
at org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:1066)
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:805)
at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:218)
at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:426)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:510)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint.access$000(SelectChannelEndPoint.java:34)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:40)
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:450)
at java.lang.Thread.run(Thread.java:724)
|
when i run: i see the issue:: Exception in thread "main" org.openqa.selenium.SessionNotCreatedException: {simulator=true, timeHack=false, locale=en_GB, CFBundleName=Safari, device=iphone, language=en} no devices available. |
Yesterday we updated our development tools to test latest versions of Apple's software with our applications and now, tests are not working. :(
Can anyone help me?
Thanks.
And the message from the server:
The text was updated successfully, but these errors were encountered: