This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var fs = require('fs'); | |
var casper = require('casper').create({ | |
verbose: true, | |
userAgent: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.98 Safari/537.36", | |
pageSettings: { | |
loadImages: false, | |
loadPlugins: false | |
} | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Connecting to a channel */ | |
export function connectToChannelListener() { | |
takeLatest(OPEN_CHANNEL, connectToChannelHandler); | |
} | |
export function* connectToChannelHandler({ uuid }) { | |
try { | |
const socket = yield call(connect, uuid); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require('chromedriver'); | |
const webdriver = require('selenium-webdriver'); | |
const cheerio = require('cheerio'); | |
const Builder = webdriver.Builder | |
const By = webdriver.By | |
const until = webdriver.until | |
const driver = new Builder() | |
.setAlertBehavior('ignore') |