Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/selenium/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
硒php单元。错误未定义变量_Php_Selenium_Selenium Webdriver_Phpunit - Fatal编程技术网

硒php单元。错误未定义变量

硒php单元。错误未定义变量,php,selenium,selenium-webdriver,phpunit,Php,Selenium,Selenium Webdriver,Phpunit,有人能帮我吗 class myClass_DataProviderAddInventory extends MinkTestCase { private $_addlotid = array( array( 'camera','Nikon'), array( 'Dslr','canon') ); public function SetValueForUpdateParcel() { return $this->_addlotid; }

有人能帮我吗

class myClass_DataProviderAddInventory extends MinkTestCase {
  private $_addlotid = array(
    array( 'camera','Nikon'),
    array( 'Dslr','canon')  
  );

   public function SetValueForUpdateParcel() {
    return $this->_addlotid;
    }

/**
 * @dataProvider SetValueForUpdateParcel
 */
    public function testaddinvenotry($newValue,$oldvalue) {
    $this->waitForPageToLoad(1000);
    $this->assertElementSetWithValue_W('css',#item_title','#cid', $newvalue,$oldvalue);

    Selenium_Helper::clickInventorySubmitButton($this);
    Selenium_Helper::clickOkButton($this);
    Selenium_Helper::isProductLinkExists($this);
    Selenium_Helper::isAddLinkExists($this);

    $this->getSession()->wait(500);
  }
}

你能发布原始错误消息吗?你能发布原始错误消息吗?