Cypress Tutorial #21 – How to Mouseover in Cypress – Part- 2
- January 8, 2024
- Posted by: MainInstructor
- Category: Go Software Testing
Video Title: Cypress Tutorial #21 – How to Mouseover in Cypress – Part- 2
Hey everyone so in the previous video we have covered about Mouse over and using Mouse over using the trigger method which is the default method available within Cypress but not necessarily this trigger method is going to work so we have used invoke method to show the menu
Items and then if say for example I do not want to even show the menu items I can still Force click on any of the menu items okay so I have covered multiple options but then if we go go to the documentation of Cyprus you’ll see multip this plugins option there okay
And if you scroll down you’ll see that many Community plugins are available in Cyprus all right for example handling iframe handling Dragon drop or even Mouse events okay so if I simply s search for Mouse okay or simply search real events okay just say real okay so
You’ll see real Cyprus re real event now this plugin will fire native system events from Cyprus like hover swipe Etc so all of this can be performed with these plugins and I highly recommend that instead of doing everything from ground up use the plug-in right because
The end goal is to do things quickly and if there is a functionality that is being developed and available by the community use that plug-in and do the events right so basically if you’ll see we go to the documentation you have to basically install it okay so how you can
Use it you can say do get and then real click or real Mouse down real Mouse up okay simply get the web element and say real Mouse up and mouse down and instead of trigger this is definitely going to perform much better okay so what we have
To do is first thing we have to install this package okay so if you’re using note package manager right which we have already used so I’ll simply copy and install it okay so let me go here and I’ll simply close this app first and go to the terminal one terminal and simply
So I’m already in this project right so I’ll simply install Cypress re real event you’ll see the installation has already started okay and it has added one package all right and this is installed now so if we go to the documentation so we have already installed now simply what we have to do
Is we have to register new commands by adding this to the index file all right so we simply say import Cypress real events okay or simply copy it and let me go to the project so it is in the support folder so simply we have to go
To the command. JS all right and this is where we have to import right so here they are saying in the index but now it is the latest version so we have this command. JS and this should be fine as well okay and here we can simply say
Import Cypress real event or we can say require Cyprus re real all right so we’ll simply say require so it will add that particular dependency so require Cyprus real and I’ll save it so now this will be available so if I have to go ahead and use it so I’ll simply use this
Mouse over and paste it here and I’ll say using real event so I’ll rename this file I’ll say mouse over real events enter and let’s uh let us change few things here okay so now we are not going to use this invoke method all right let’s first use the real event so what
We were doing we were I’ll uncomment this method here and instead of trigger I’ll simply say dot real okay and you’ll see all the methods that are there in this particular plugin are available so I’ll say real Mouse okay I’ll say real mouse let’s see if we have this real
Mouse over or there is something else so real Mouse over okay so they have not over it’s real hover so I have to make sure that I use real Mouse hover so real and that should be it okay so if I simply save it let’s go back and execute
This particular test and see that the mouse over happens really or not so we have this mouse over real events I clicked it let’s see it will open yra and should trigger the real Mouse you’ll see that automatically without any issues with trigger we were having so
Many issues right so this mouse over successfully happened and you will see with real with real hover I can easily get what exactly was not possible with the trigger method okay so this is basically how you are going to use this particular PL uh Plugin or any sort of
Plug-in right and you’ll see if I go here you’ll see real H real click real press real touch all right so real Mouse down Mouse up so I can now use this okay so I can simply use this particular plugin and instead of the default methods that might break these are the
Plugins that are available that will make sure that your events or Mouse events are handled in much robust okay so this is about Mouse over using the Cypress re real events plug-in all right so that’s all for this video and I’ll be covering a lot more plugins and different options to handle certain
Elements so in the real project in your real time project and I using the real applications right so this is the real application if you are able to handle these sort of applications any realtime project will be of similar complexity so you’ll be absolutely fine in that
Particular sense okay so that’s all for this video see you in the next thank you
Video Keywords: Software Testing
-
Sale!
Wireless WIFI Repeater Extender Amplifier Booster 300Mbps
$29.99$14.99 Add to cartWireless WIFI Repeater Extender Amplifier Booster 300Mbps
Categories: Electronics, Wi-Fi Router, Wireless Wi-Fi Extender Tags: 300Mbps, 802.11N, Amplifier, Booster, Extender, mobile wi-fi booster, Remote, WIFI, Wireless, Wireless WIFI, Wireless WIFI Repeater, Wireless WIFI Repeater Extender, Wireless WIFI Repeater Extender Amplifier, Wireless WIFI Repeater Extender Amplifier Booster, Wireless WIFI Repeater Extender Amplifier Booster 300Mbps$29.99$14.99 -
Sale!
Full RGB Light Design Gaming Headset Headphones with Mic
$24.99$14.99 Add to cartFull RGB Light Design Gaming Headset Headphones with Mic
Categories: Electronics, Gaming, Gaming Headsets Tags: Design, Full, Full RGB Light Design Gaming Headset, Full RGB Light Design Gaming Headset Headphones, Full RGB Light Design Gaming Headset Headphones with Mic, Gamer, Gaming, Gaming Headset Headphones, gaming headset wireless, Headphone, Headphones, Headset, Light, Mic, Package, RGB$24.99$14.99 -
Sale!
Wireless BlueTooth Multi-Device Keyboard Mouse Combo
$39.99$19.99 Add to cartWireless BlueTooth Multi-Device Keyboard Mouse Combo
Categories: Electronics, Gaming, Gaming Keyboards, Keyboard Mouse Combos Tags: Combo, Keyboard, keyboard mouse combos, Mouse, MultiDevice, Set, WireKeyboard Mouse Combo, Wireless, Wireless BlueTooth Keyboard Mouse Combo, Wireless BlueTooth Keyboard Mouse Combos, Wireless BlueTooth Multi-Device Keyboard Mouse Combo, Wireless BlueTooth Multi-Device Keyboard Mouse Combos$39.99$19.99 -
Sale!
High Back Leather Executive Adjustable Swivel Gaming Chair with Headrest and Lumbar
$199.99$139.99 Add to cartHigh Back Leather Executive Adjustable Swivel Gaming Chair with Headrest and Lumbar
Categories: Gaming, Gaming Chairs Tags: Adjustable, Chair, computer chairs, Desk, Executive, Gaming, Girl, Headrest, High, High Back Leather Executive Adjustable Swivel Gaming Chair, High Back Leather Executive Adjustable Swivel Gaming Chair with Headrest, High Back Leather Executive Adjustable Swivel Gaming Chair with Headrest and Lumbar, High Back Leather Executive Adjustable Swivel Gaming Chairs, Leather, Lumbar, Office, Racing, Swivel$199.99$139.99 -
Sale!
Professional LED Light Wired Gaming Headphones with Noise Cancelling Microphone
$29.99$19.99 Select optionsProfessional LED Light Wired Gaming Headphones with Noise Cancelling Microphone
SKU: N/A Categories: Electronics, Gaming, Gaming Headsets Tags: Cancelling, Gaming, Gaming Headphones with Noise Cancelling Microphone, gaming headset, Headphones, Headset, LED, Light, Mic, Microphone, Noise, Professional, Professional LED Light Wired Gaming Headphones, Professional LED Light Wired Gaming Headphones with Noise Cancelling Microphone, Wired, Wired Gaming Headphones, Wired Gaming Headphones with Noise Cancelling Microphone$29.99$19.99 -
Sale!
Gaming Desk with LED Lights USB Power Outlets and Charging Ports
$349.99$249.99 Select optionsGaming Desk with LED Lights USB Power Outlets and Charging Ports
SKU: N/A Categories: Computer Desk, Gaming, Gaming Desk Tags: and Charging Ports, Charging, Desk, Desks, Gaming, gaming desk with led lights, Gaming Desks with LED Lights, Home, LED, Lights, Monitor, Office, Outlets, Port, Power, Room, Stand, USB, USB Power Outlets, White, Workstation$349.99$249.99 -
Sale!
Wired Mixed Backlit Anti-Ghosting Gaming Keyboard
$99.99$79.99 Add to cartWired Mixed Backlit Anti-Ghosting Gaming Keyboard
Categories: Electronics, Gaming, Gaming Keyboards Tags: Antighosting, Backlit, Blue, brown, Gaming, Gaming Keyboard, gaming keyboards, gaming keyboards and mouse, Keyboard, Laptop, Switch, Wired, Wired Mixed Backlit Anti-Ghosting Gaming Keyboard, Wired Mixed Backlit Anti-Ghosting Gaming Keyboards, Wired Mixed Backlit Gaming Keyboard$99.99$79.99 -
Sale!
Wireless Bluetooth 5.3 ANC Noise Cancellation Hi-Res Over the Ear Headphones Headset
$119.99$59.99 Add to cartWireless Bluetooth 5.3 ANC Noise Cancellation Hi-Res Over the Ear Headphones Headset
Categories: Electronics, Gaming, Gaming Headsets Tags: 5.3 ANC Noise Cancellation Hi-Res Over the Ear Headphones Headset, ANC, Audio, Bluetooth, Cancellation, Ear, Earphone, gaming headset, Headphones, Headset, Hi-Res Over the Ear Headphones Headset, HiRes, Noise, Wireless, Wireless Bluetooth 5.3 ANC Noise Cancellation Hi-Res Headphones, Wireless Bluetooth 5.3 ANC Noise Cancellation Hi-Res Over the Ear Headphones Headset, Wireless Bluetooth 5.3 ANC Noise Cancellation Hi-Res Over the Ear Headphones Headsets$119.99$59.99 -
Sale!
Wired Sports Gaming Headset Earbuds with Microphone
$19.99$9.99 Select optionsWired Sports Gaming Headset Earbuds with Microphone
SKU: N/A Categories: Gaming, Gaming Headsets Tags: Accessories, Earbud, Earphone, Earphones, Gaming, gaming headset with microphone, Headphones, Headset, IOS, Microphone, Sports, Wired, Wired Sports Gaming Headset Earbuds, Wired Sports Gaming Headset Earbuds with Microphone, Wired Sports Headset Earbuds$19.99$9.99 -
Sale!
150W Universal Multi USB Fast Charger 16 Port MAX Charging Station
$49.99$29.99 Add to cart150W Universal Multi USB Fast Charger 16 Port MAX Charging Station
Categories: Charging Stations, Electronics Tags: 150W, 150W Charging Station, 150W Universal Multi USB Charging Station, 150W Universal Multi USB Fast Charger 16 Port MAX Charging Station, 150W Universal Multi USB Fast Charger 16 Port MAX Charging Stations, 150W Universal Multi USB MAX Charging Station, 16 Port MAX Charging Station, 3.5A, Charger, Charging, Fast, laptop charging stations, Max, Multi, Port, Stand, Station, Universal, USB$49.99$29.99
Hello sir page object model use kar ke ek video banao
When will I get your next video?
Very educational. Please add video for more operations like double-click, right-click, drag and drop, etc.