0
0
Fork 0
mirror of https://github.com/salesagility/SuiteCRM.git synced 2025-02-20 20:38:45 +00:00
salesagility_SuiteCRM/tests/SuiteCRM/Test/Driver/WebDriver.php

62 lines
1.4 KiB
PHP

<?php
namespace SuiteCRM\Test\Driver;
use Exception;
use Helper\WebDriverHelper;
class WebDriver extends \Codeception\Module\WebDriver
{
public function _initialize()
{
$config = $this->_getConfig();
$this->config['host'] = $config['host'];
$this->config['port'] = $config['port'];
parent::_initialize();
}
protected function initialWindowSize()
{
$config = $this->_getConfig();
$width = isset($config['width']) ? $config['width'] : 1920;
$height = isset($config['height']) ? $config['height'] : 1080;
$this->resizeWindow($width, $height);
}
public function _afterSuite()
{
parent::_afterSuite();
}
/**
* @param $element
* @param int $timeout
* @throws Exception
*/
public function waitForElementVisible($element, $timeout = 5)
{
parent::waitForElementVisible($element, $timeout);
}
/**
* @param $element
* @param int $timeout
* @throws Exception
*/
public function waitForElementNotVisible($element, $timeout = 5)
{
parent::waitForElementNotVisible($element, $timeout);
}
/**
* @param string $text
* @param int $timeout
* @param null $selector
* @throws Exception
*/
public function waitForText($text, $timeout = 5, $selector = null)
{
parent::waitForText($text, $timeout, $selector);
}
}