Skip to content

Commit

Permalink
docs: remove invalid async option from docs (fix #1769)
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasvh committed Apr 8, 2019
1 parent 317fcbe commit 9070562
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,25 @@

const path = require('path');
const simctl = require('node-simctl');
//const iosSimulator = require('appium-ios-simulator');
const iosSimulator = require('appium-ios-simulator');
const port = 9876;

if (process.env.TARGET_BROWSER === 'Safari_IOS') {
console.log('finding devices');
simctl.getDevices().then(devices => {
console.log('devices: ', devices);
const d = devices['11.4'].find(d => {
return d.name === 'iPhone 8 Plus';
});

console.log('found: ', d);
iosSimulator.getDevice(d.udid).then(device => {
console.log('device', device);
});
console.log('still ok')
});
/*
iosSimulator.getDevice('2EBE020A-53BC-45DF-B481-554C5D83141C').then(device => {
console.log('device', device);
});
*/
}

Expand Down

0 comments on commit 9070562

Please sign in to comment.