andycha28 / php-webdriver-bindings

Automatically exported from code.google.com/p/php-webdriver-bindings
0 stars 0 forks source link

WebElement - trying to access protected property #23

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. try to create element e.g.
$this->driver->findElementBy(LocatorStrategy::id, 'surname');

2. in WebElement::__construct is thrown exception "trying to access protected 
property". 

What is the expected output? What do you see instead?
returned WebElement

What version of the product are you using? On what operating system?
missing, cannot determine

Please provide any additional information below.

Solution:

change line:
$root = $parent->requestURL;

$root = $parent->getRequestURL();

and add method into WebDriverBase:

    public function getRequestURL(){
        return $this->requestURL;
    }

lubosdz

Original issue reported on code.google.com by lubosdz on 8 Feb 2012 at 1:51