Created
June 4, 2021 23:11
-
-
Save Jaimin180296/dc777597940195dce2e546beea04f93e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe('Google\'s Search Functionality', function() { | |
it('can find search results', function() { | |
browser.waitForAngularEnabled(false); | |
browser.get("https://opensource-demo.orangehrmlive.com/") | |
browser.manage().timeouts().implicitlyWait(15000); | |
element(by.id("txtUsername")).sendKeys("Admin"); | |
element(by.id("txtPassword")).sendKeys("admin123"); | |
element(by.id("btnLogin")).click(); | |
browser.sleep(3000) | |
var admin= element(by.id("menu_admin_viewAdminModule")); | |
var user = element(by.id("menu_admin_UserManagement")); | |
var users= element(by.id("menu_admin_viewSystemUsers")); | |
// double click the double click button | |
browser.actions().mouseDown(admin).mouseMove(user).mouseUp(users).perform(); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment