I have recently been working on a task involving web UI automation using Selenium
, Javascript
and SeLion
. My goal is to capture a screenshot of a scenario similar to the Google homepage, specifically focusing on the "Search by voice" feature when hovering over the microphone icon. Despite my efforts in researching for solutions, none have yielded the desired outcome.
The structure I am dealing with looks something like this:
<div id="div_id">
<button type="button" class="button_class" disabled="" data-marko=" .
{"onclick":"handleClick s0-2-0-27-0
false","onkeydown":"handleKeydown s0-2-0-27-0 false"}"
title="This message shows by mouseenter event" aria-label="This
message shows by mouseenter event">
<span class="span_class"></span>
</button>
</div>
Upon hovering over the button, "
This message shows by mouseenter event
" should appear. The page seems to be built using Marko-js, which has posed challenges for me in achieving this function using plain Javascript.
If anyone has any insight or ideas to offer, it would be greatly appreciated!
Thank you in advance!