硒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);
}
}
你能发布原始错误消息吗?你能发布原始错误消息吗?