04 2015 档案

摘要:Assert.assertTrue(tmpEl.getAttribute("class").contains("selected"),"The folder should be highlighted.");Assert.assertFalse(dialog.isDisplayed(),button... 阅读全文
posted @ 2015-04-23 14:51 *飞飞* 阅读(97) 评论(0) 推荐(0) 编辑
摘要:btnLogin.click(); //Click elementSeleniumUtil.jsClick(driver, saveButtonEl); //If click() is not applicable ,try this onetxtEmail.clear(); //Clear tex... 阅读全文
posted @ 2015-04-23 14:50 *飞飞* 阅读(229) 评论(0) 推荐(0) 编辑
摘要:1.Wait for element in default time or self defined timeWhen the element need some time to be present , be visible, be not present or be not visible, f... 阅读全文
posted @ 2015-04-23 14:48 *飞飞* 阅读(180) 评论(0) 推荐(0) 编辑
摘要:CSSSelectorExampleDescriptionelement.elementdiv.dropdownSelect all elements whose class=“dropdown”element#elementdiv#new-inputSelect all elements... 阅读全文
posted @ 2015-04-23 14:43 *飞飞* 阅读(160) 评论(0) 推荐(0) 编辑
摘要:java版: public void clickReportIcon(){ String initialWindowHandle = driver.getWindowHandle(); //保存原始的浏览器窗口 page.getReportIcon().click(); //这个操作之后将会弹出另外 阅读全文
posted @ 2015-04-23 14:41 *飞飞* 阅读(1840) 评论(0) 推荐(0) 编辑