Skip to content

Instantly share code, notes, and snippets.

@drkpkg
Last active January 10, 2017 19:18
Show Gist options
  • Save drkpkg/f62ce408a7e37e481a5fed144eaee55e to your computer and use it in GitHub Desktop.
Save drkpkg/f62ce408a7e37e481a5fed144eaee55e to your computer and use it in GitHub Desktop.
AHHHHH
//todo-spec.js
describe('4chin page', function() {
it('click in image', function() {
browser.ignoreSynchronization = true; // Non angular page
browser.driver.manage().window().maximize();
browser.get('http://boards.4chan.org/wg/thread/6813282/like-this');
var list = element.all(by.css('.fileThumb'));
list.each(function(elem){
elem.click();
});
// browser.sleep(10000);
// expect(completedAmount.count()).toEqual(2);
});
});
//conf.js
exports.config = {
seleniumAddress: 'http://localhost:4444/wd/hub',
specs: ['todo-spec.js']
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment