<commit_before>'use strict';
let Helper = require('../helper');
let webdriverio = require('webdriverio');
let stringIncludes = require('../assert/include').includes;
let empty = require('../assert/empty').empty;
let xpathLocator = require('../utils').xpathLocator;

/**
 * WebDriverIO helper which wraps [webdriverio](http://webdriver.io/) library to 
 * manipulate browser using Selenium WebDriver or PhantomJS. 
 * 
 * #### Selenium Installation
 *
 * 1. Download [Selenium Server](http://docs.seleniumhq.org/download/)
 * 2. Launch the daemon: `java -jar selenium-server-standalone-2.xx.xxx.jar`
 *
 *
 * #### PhantomJS Installation
 *
 * PhantomJS is a headless alternative to Selenium Server that implements [the WebDriver protocol](https://code.google.com/p/selenium/wiki/JsonWireProtocol).
 * It allows you to run Selenium tests on a server without a GUI installed.
 *
 * 1. Download [PhantomJS](http://phantomjs.org/download.html)
 * 2. Run PhantomJS in WebDriver mode: `phantomjs --webdriver=4444`
 * 
 * ### Configuration
 * 
 * This helper should be configured in codecept.json
 * 
 * * `url` - base url of website to be tested
 * * `browser` - browser in which perform testing 
 * 
 * Additional configuration params can be used from http://webdriver.io/guide/getstarted/configuration.html
 * 
 */
class WebDriverIO extends Helper {
  
  constructor(config) {
    super(config);
    this.options = config;
    if (!this.options.desiredCapabilities) this.options.desiredCapabilities = {};
    this.options.desiredCapabilities.browserName = config.browser;
    this.options.baseUrl = config.url;
    if(config.proxy) {
      this.options.desiredCapabilities = config.proxy;
    }
  }
  
  static _config() {
    return [
      { name: 'url', message: "Base url of site to be tested", default: 'http://localhost' },
      { name: 'browser', message: 'Browser in which testing will be performed', default: 'firefox'}
    ];
  }
  <commit_msg>Update the proxy json object for desiredcapabilities<commit_after>'use strict';
let Helper = require('../helper');
let webdriverio = require('webdriverio');
let stringIncludes = require('../assert/include').includes;
let empty = require('../assert/empty').empty;
let xpathLocator = require('../utils').xpathLocator;

/**
 * WebDriverIO helper which wraps [webdriverio](http://webdriver.io/) library to 
 * manipulate browser using Selenium WebDriver or PhantomJS. 
 * 
 * #### Selenium Installation
 *
 * 1. Download [Selenium Server](http://docs.seleniumhq.org/download/)
 * 2. Launch the daemon: `java -jar selenium-server-standalone-2.xx.xxx.jar`
 *
 *
 * #### PhantomJS Installation
 *
 * PhantomJS is a headless alternative to Selenium Server that implements [the WebDriver protocol](https://code.google.com/p/selenium/wiki/JsonWireProtocol).
 * It allows you to run Selenium tests on a server without a GUI installed.
 *
 * 1. Download [PhantomJS](http://phantomjs.org/download.html)
 * 2. Run PhantomJS in WebDriver mode: `phantomjs --webdriver=4444`
 * 
 * ### Configuration
 * 
 * This helper should be configured in codecept.json
 * 
 * * `url` - base url of website to be tested
 * * `browser` - browser in which perform testing 
 * 
 * Additional configuration params can be used from http://webdriver.io/guide/getstarted/configuration.html
 * 
 */
class WebDriverIO extends Helper {
  
  constructor(config) {
    super(config);
    this.options = config;
    if (!this.options.desiredCapabilities) this.options.desiredCapabilities = {};
    this.options.desiredCapabilities.browserName = config.browser;
    this.options.baseUrl = config.url;
    if(config.proxy) {
      this.options.desiredCapabilities.proxy = config.proxy;
    }
  }
  
  static _config() {
    return [
      { name: 'url', message: "Base url of site to be tested", default: 'http://localhost' },
      { name: 'browser', message: 'Browser in which testing will be performed', default: 'firefox'}
    ];
  }
  
{'fraction_non_alphanumeric': 0.13105196451204057, 'fraction_numerical': 0.0045627376425855515, 'mean_word_length': 3.7657004830917873, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3275918', 'n_tokens_mistral': 1219, 'n_tokens_neox': 1148, 'n_words': 324}