I have set up Page objects for the home page and login page. As I proceed with my test cases, I am encountering an issue with the login button. During the execution of my test cases, the login button is not responding to clicks. Has anyone else faced similar challenges here?
let assertion = require("assert").use(require("chai-as-promised"));
import { defineSupportCode } from 'cucumber';
import {browser, element, by, ElementFinder, $, $$ , until } from 'protractor' ;
const expect = assertion.expect;
import { HomePage } from '../page-objects/pm360-home-page';
import { LoginPage } from '../page-objects/pm360-login-page';
var pm360_homepage = new HomePage();
//var pm360_loginpage = new LoginPage();
defineSupportCode(({Given,Then }) => {
Given('I log in to pm360 page using valid credentials {string} and {string}',
async function givenauth(username: string, password: string): Promise<void>{
pm360_homepage.OpenBrowser('https://pm360-qa.parkmobile.io/');
await pm360_homepage.usernameField.sendKeys('.....');
await pm360_homepage.passwordField.sendKeys('......');
//browser.actions().sendKeys(protractor.Button.MIDDLE).click();
pm360_homepage.ClickLogIn();
//pm360_homepage.logInBtn.click().then(()=> {"looged In"});
//browser.touchActions().tap(pm360_homepage.logInBtn).perform().then(()=> {"logged In"});
browser.ignoreSynchronization = true;
});
Given('I proceed to manage policies',
async function givenmanaging():Promise<void>{
browser.ignoreSynchronization = true;
//browser.wait(until.elementsLocated(pm360_homepage.managePoliciesBtn));
await pm360_homepage.managePoliciesBtn.click();
//browser.waitForAngularEnabled(true);