我使用 PHPUnit_Extensions_Selenium2TestCase Selenium 和 phpunit,我需要在不同的 emelent 上拖放一个 xpath 元素。就像在此屏幕上一样,更改树(类别树)上的位置
$srcDrag=$this->byId('draggable');
$targetDrop=$this->byId('droppable');
$stateChecker=$this->byCssSelector('#droppable > p');
$this->assertEquals("Drop here",$stateChecker->text());
$this->moveto($srcDrag);
$this->buttondown();
$this->moveto($targetDrop);
$this->buttonup();
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)