Giter VIP home page Giter VIP logo

safarilauncher's People

Contributors

budhash avatar jlipps avatar snevesbarros avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

safarilauncher's Issues

Getting Error while npm install [email protected]

npm install [email protected]
npm ERR! Darwin 15.0.0
npm ERR! argv "/usr/local/Cellar/node/5.7.0/bin/node" "/usr/local/bin/npm" "install" "[email protected]"
npm ERR! node v5.7.0
npm ERR! npm v3.6.0

npm ERR! Cannot read property 'target' of null
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! https://github.com/npm/npm/issues

npm ERR! Please include the following file with any support request:
npm ERR! /usr/local/lib/node_modules/appium/build/npm-debug.log

how to build?

hello there all,
I'm sorry to bother, but I tried building in Xcode and via the shell script with no luck.

Any help will be much appreciated.

SafariLauncher - Unable to find any web views

I am currently getting this error using SafarLauncher with real iPhone device. Can you please help?
014-07-23T20:10:36.985Z - debug: [REMOTE] Getting WebKitRemoteDebugger pageArray

2014-07-23T20:10:36.995Z - warn: Could not find any webviews yet, retrying

I increased the delay to 20 seconds , I am getting to the url after 20 seconds .

my code is as follows:

private WebDriver remoteWebDriver;

@Test
public void runstuff() throws InterruptedException {

    DesiredCapabilities capabilities = new DesiredCapabilities();
    capabilities.setCapability(CapabilityType.BROWSER_NAME, "safari");

    capabilities.setCapability("platformName", "iOS");

    capabilities.setCapability("deviceName", "iPhone");

      capabilities.setCapability(CapabilityType.PLATFORM, "Mac");
    try {
        System.out.println("before");
        remoteWebDriver =  new RemoteWebDriver(new URL("http://127.0.0.1:4723/wd/hub"), capabilities);

        System.out.println("after........");


    }

    System.out.println("Running First Test");

            Thread.sleep(30000);

remoteWebDriver.get("http://www.google.com ");
WebElement element1 = remoteWebDriver.findElement(By.id("gb-main"));
System.out.println(element1);
WebElement element = remoteWebDriver.findElement(By.name("q"));
element.sendKeys("Cheese!");

                    element.submit(); 

                    System.out.println("Page title is: " + remoteWebDriver.getTitle()); 
                    remoteWebDriver.quit(); 

}
}

I did try to use window handles , but that did not work.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.