<commit_before><?php
namespace pyd\testkit\web;

use pyd\testkit\Tests;

/**
 * Base class for web test case.
 * 
 * The default setting is 'isolation' oriented. A selenium session is created
 * before and destroyed after each test method. Therefor the browser is launched
 * and closed accordingly.
 * 
 * Check the @see $shareWebDriver property to increase the testing speed.
 *
 * @author <NAME> <<EMAIL>>
 */
class TestCase extends \pyd\testkit\TestCase
{
    /**
     * @var \pyd\testkit\web\Driver
     */
    public $webDriver;
    /**
     * Share the web driver session between the test methods of this test case.
     * 
     * If set to false, a selenium session is created - the browser is launched
     * - and destroyed - the browser is closed - for each test method. This will
     * ensure isolation but will increase the testing time.
     * 
     * If set to true, a selenium session is created - and the browser launched -
     * once at the beginning of the test case. It remains opened untill the end
     * of the test case unless it is willingly destroyed. in this case a new
     * session is created for the next test method.
     * 
     * @var boolean use the same web driver instance for each test method
     */
    public static $shareWebDriver = false;
    /**
     * If set to true, cookies will be deleted after each test method.
     *
     * @var boolean
     */
    public static $clearCookies = true;

    /**
     * Web driver configuration.
     *
     * Basic config for firefox.
     * 
     * @see \RemoteWebDriver::create()
     *
     * @return array
     */
    public static function webDriverConfig()
    {
        $caps = \DesiredCapabilities::firefox();
        return [
            'url' => 'http://localhost:4444/wd/hub',
            'desiredCapabilities' => $caps,
            'connectionTimeout' => null,
            'requestTimeout' => null
        ];
    }
}<commit_msg>Set chrome browser for webdriver.<commit_after><?php
namespace pyd\testkit\web;

use pyd\testkit\Tests;

/**
 * Base class for web test case.
 * 
 * The default setting is 'isolation' oriented. A selenium session is created
 * before and destroyed after each test method. Therefor the browser is launched
 * and closed accordingly.
 * 
 * Check the @see $shareWebDriver property to increase the testing speed.
 *
 * @author <NAME> <<EMAIL>>
 */
class TestCase extends \pyd\testkit\TestCase
{
    /**
     * @var \pyd\testkit\web\Driver
     */
    public $webDriver;
    /**
     * Share the web driver session between the test methods of this test case.
     * 
     * If set to false, a selenium session is created - the browser is launched
     * - and destroyed - the browser is closed - for each test method. This will
     * ensure isolation but will increase the testing time.
     * 
     * If set to true, a selenium session is created - and the browser launched -
     * once at the beginning of the test case. It remains opened untill the end
     * of the test case unless it is willingly destroyed. in this case a new
     * session is created for the next test method.
     * 
     * @var boolean use the same web driver instance for each test method
     */
    public static $shareWebDriver = false;
    /**
     * If set to true, cookies will be deleted after each test method.
     *
     * @var boolean
     */
    public static $clearCookies = true;
    
    /**
     * Web driver configuration.
     *
     * Basic config for firefox.
     * 
     * @see \RemoteWebDriver::create()
     *
     * @return array
     */
    public static function webDriverConfig()
    {
        $caps = \DesiredCapabilities::chrome();
        
        return [
            'url' => 'http://localhost:4444/wd/hub',
            'desiredCapabilities' => $caps,
            'connectionTimeout' => null,
            'requestTimeout' => null
        ];
    }
}
{'fraction_non_alphanumeric': 0.08887171561051005, 'fraction_numerical': 0.0020607934054611026, 'mean_word_length': 2.2602854743912677, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1265067', 'n_tokens_mistral': 1071, 'n_tokens_neox': 1035, 'n_words': 430}