Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any way to simulate onmouseover in Developer Tools?

I know that Firefox has a way to simulate hover, active and focus filters.

enter image description here

Is there any way to simulate onmouseover elevation?

I want to simulate this in two elements together, is this possible?

I didn't find any extension for this purpose. Thank you in advance.

like image 905
Jose Serodio Avatar asked May 14 '16 19:05

Jose Serodio


1 Answers

Yes, as it is selected in your image you can use the dispatchEvent method only you must previously create the event in the chrome console and execute it.

  1. pre-create :hover event
var event = new MouseEvent("mouseover");
  1. You send the event to the DOM element where $0 is the element that you have selected in the debugger of your browser (in your case a div with the class facebox)
$0.dispatchEvent(event)
like image 59
macorreag Avatar answered Oct 29 '22 12:10

macorreag