Skip to content

Instantly share code, notes, and snippets.

@Jaimin180296
Created June 4, 2021 23:11
Show Gist options
  • Save Jaimin180296/dc777597940195dce2e546beea04f93e to your computer and use it in GitHub Desktop.
Save Jaimin180296/dc777597940195dce2e546beea04f93e to your computer and use it in GitHub Desktop.
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