Prose\Prose::initDevice PHP Method

initDevice() protected method

protected initDevice ( )
    protected function initDevice()
    {
        // start the test device
        $this->device = $this->st->getRunningDevice();
        // set our top XPATH node
        //
        // for the moment, we are assuming that the test device is
        // a web browser, because historically this has always been
        // the case
        //
        // when this assumption is no longer valid, we will need to
        // revisit this code
        $this->setTopXpath("//html");
        // set our top element
        //
        // we cannot assume that the browser has any DOM loaded at all
        $this->setTopElement($this->device);
    }