Reputation: 429
I am trying to automate the orangehrm website using cypress (https://opensource-demo.orangehrmlive.com/index.php/auth/login)
My usecase
I tried with cypress but somehow mouse over is not working. Kindly suggest the best way to click KPI link.
screenshots
Upvotes: 4
Views: 1102
Reputation: 1098
The cypress-real-events library hover command works ok
cy.get('#menu__Performance')
.realHover()
cy.contains('#menu_performance_Configure', 'Configure')
.realHover()
cy.contains('#menu_performance_searchKpi', 'KPIs')
.click({force:true})
cy.contains('h1', 'Search Key Performance Indicators')
Note
The last command need force
because element clipping does occur.
Install
npm install cypress-real-events
//or
yarn add cypress-real-events
cypress/support/index.js
import "cypress-real-events/support";
Upvotes: 5