question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cloud emulation provider

See original GitHub issue

As suggested by @mebibou, the following quotes from #42 directly -

Also, I don’t know if you know ripple-emulator, but it allows you to run your app like an Android or iPhone app with some Cordova features (or writing your own bridges if you need more). Here’s my full protractor.conf.js to give you an idea:

exports.config = {
  seleniumAddress: 'http://localhost:4444/wd/hub',
  seleniumPort: 4444,
  chromeDriver: '../node_modules/protractor/selenium/chromedriver',
  directConnect: true,
  framework: 'jasmine2',
  baseUrl: 'http://localhost:8100',
  capabilities: {
    browserName: 'chrome',
    chromeOptions: {
      args: ['--disable-web-security']
    }
  },
  specs: [
    'protractor/**/*.js'
  ],
  jasmineNodeOpts: {
    showColors: true,
    defaultTimeoutInterval: 30 * 1000,
    isVerbose: true
  },
  onPrepare: function() {
    // Use ripple emulator to run the tests
    var url = 'http://localhost:4400/?enableripple=cordova-3.0.0-' + browser.params.device;
    browser.driver.manage().window().maximize();
    browser.ignoreSynchronization = true;
    browser.driver.get(url);
    // Allow ripple to load
    browser.driver.wait(function() {
      return browser.driver.getCurrentUrl().then(function(actualUrl) {
        return url == actualUrl;
      });
    }, 10000, 'url hasnt changed');
    browser.driver.wait(function() {
      return element(by.id('document')).isPresent();
    }, 10000, 'ripple not loaded');
    browser.driver.switchTo().frame(0);
  }
};

Although this used to be working before, since I updated to ionic2-beta.3 it doesn’t work anymore 😞 (ripple doesn’t want to load anymore I don’t know why)

Issue Analytics

  • State:open
  • Created 8 years ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
murraybauercommented, Mar 4, 2017

@lathonez I thought ripple was dead? Only emulates very few native plugins e.g. geo location.

Microsoft announced their own open source cordova simulator 6-9 months ago to replace it: https://github.com/Microsoft/cordova-simulate

1reaction
mebiboucommented, Nov 15, 2016

FYI, I am using this piece of code for google login, which you can easily adapt for facebook:

function _checkPresenceOf(selector) {
  return browser.wait(function() {
    return browser.isElementPresent($(selector));
  }, 5000, selector + ' not present');
}

var handles = null;
browser.getAllWindowHandles()
  .then(function(_handles_) {
    handles = _handles_;
  })
  .then(function() {
    return browser.switchTo().window(handles[1]);
  })
  .then(function() {
    return _checkPresenceOf('#Email');
  })
  .then(function() {
    $('#Email').sendKeys('test@gmail.com');
    return $('#next').click();
  })
  .then(function() {
    return browser.driver.sleep(500);
  })
  .then(function() {
    return _checkPresenceOf('#Passwd');
  })
  .then(function() {
    $('#Passwd').sendKeys('test');
    return $('#signIn').click();
  })
  .then(function() {
    return browser.switchTo().window(handles[0]);
  });
Read more comments on GitHub >

github_iconTop Results From Across the Web

Emulation Cloud for Open Application Development - Ciena
Ciena's Emulation Cloud™ is an open application development environment designed to help customers and third-party developers customize applications.
Read more >
REDFINGER GLOBAL | Best Cloud Android Emulator, Cross ...
Redfinger Cloud Android Phone, the best cloud android emulator, brings full android app/cloud gaming experience across all platforms.
Read more >
Cloud-Based Emulation - SemiWiki
The simplest way to manage this is to secure VPN back to the emulation supplier who can more effectively manage and maintain that...
Read more >
Synopsys ZeBu Cloud Solution
ZeBu® Cloud is a hosted emulation solution that delivers flexible, turn-key, and secure emulation to accelerate software bring-up, performance validation, ...
Read more >
Build Your Own Cloud Emulator | Android Open Source Project
This centralized configuration and setup make AAOS Emulator accessible to an entire company, supplier, and work-from-home developers.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found