page->getCookie('vision'); if(!isset($currentVision) || $currentVision != 'lite') $this->switchVision('lite'); $form = $this->initForm('execution', 'kanban', array('kanbanID' => '2'), 'appIframe-project'); $form->wait(3); /* 选择泳道分组 */ if(!empty($groupId)) { $form->dom->xpath['kanbanGroup'] = "(//menu/menu/li)[{$groupId}]"; $form->dom->groupPickerInLite->click(); $form->wait(1); $form->dom->kanbanGroup->click(); $form->wait(1); } /* 检查对应泳道下的卡片数量 */ $form->dom->xpath['col'] = "//div[@z-lane='{$lane}' and @z-col='{$col}']//div[@class='card']"; if(count($form->dom->getElementList($form->dom->xpath['col'])->element) != $num) return $this->failed("数据错误"); return $this->success("数据正确"); } }