diff --git a/module/instance/test/lib/instance.ui.class.php b/module/instance/test/lib/instance.ui.class.php new file mode 100644 index 0000000000..a362862d06 --- /dev/null +++ b/module/instance/test/lib/instance.ui.class.php @@ -0,0 +1,15 @@ +login(); + $this->initForm('space', 'browse', '', 'appIframe-devops'); + $xpathNum = $this->page->webdriver->driver->findElement(WebDriverBy::xpath("(//div[text()='$type']/..)[1]"))->getAttribute('data-row'); + $this->page->webdriver->driver->findElement(WebDriverBy::xpath("//div[@data-col='name' and @data-row=$xpathNum]//a[text()]"))->click(); + $this->webdriver->wait(1); + } +}