28 lines
754 B
Java
28 lines
754 B
Java
|
package test;
|
||
|
|
||
|
import static org.junit.Assert.*;
|
||
|
|
||
|
import org.junit.*;
|
||
|
|
||
|
/**
|
||
|
* Web Driver + zk jq selector, doesn't required AdempiereIdGenerator
|
||
|
* @author hengsin
|
||
|
*
|
||
|
*/
|
||
|
public class SelectTabTest extends AbstractTestCase {
|
||
|
@Test
|
||
|
public void testSelectTab() throws Exception {
|
||
|
login();
|
||
|
waitResponse();
|
||
|
select("$treeSearchCombo", "Product");
|
||
|
waitResponse();
|
||
|
clickButton("$findWindow_1 $simpleSearch $btnOk");
|
||
|
waitResponse();
|
||
|
selectTab("$Product_1 $detailPane @tabbox", 2);
|
||
|
assertFalse("Business Partner".equals(selectedTab("$Product_1 $detailPane @tabbox")));
|
||
|
waitResponse();
|
||
|
selectTab("$Product_1 $detailPane @tabbox", "Business Partner");
|
||
|
assertEquals("Business Partner", selectedTab("$Product_1 $detailPane @tabbox"));
|
||
|
}
|
||
|
}
|