mouseover

How to handle Mouseover in Selenium 2 API

半城伤御伤魂 提交于 2019-12-07 22:25:43
问题 String strPrimaryNav = "MEN"; String strSecondaryNav = "Shoes"; String strTertiaryNav = "Golf"; driver.findElement(By.linkText(strPrimaryNav)).click(); WebElement weSecNav = driver.findElement(By.className("secondaryButton").linkText(strSecondaryNav)); Mouse mouse = ((HasInputDevices) driver).getMouse(); mouse.mouseDown(((Locatable)weSecNav).getCoordinates()); //just trying with for loop as the tertiary popup disappears quickly and hence getting ElementNotVisible Exception for (int i = 0 ; i<

jQuery detect how many seconds a mouse stays over element

橙三吉。 提交于 2019-12-07 17:35:43
问题 is there any way to detect how many seconds a mouse pointer stays on an html element? I would like to retrieve how many seconds a mouse stays over element to put a little delay on a callback event... if is possible :) i'm trying with a simple for() cycle detecting by a counter : var time_over ; $('.bean-active').live('mouseover',function(){ id_tag = $(this).attr("id"); for(time_over = 1;time_over <= 3000;time_over ++){ if(time_over == 3000){ $('.bean-bubble,.bean-bubble img').hide(); $('#bean

How to add a tooltip to Boundfields in a Detailsview, but only if color of column has changed

半腔热情 提交于 2019-12-07 17:31:55
问题 I have the following code ... <asp:DetailsView ID="dvApprenticeship" runat="server" DataSourceID="dsApprenticeship" AutoGenerateRows="false" BackColor="#E0E8F0" GridLines="None" CellPadding="2" DataKeyNames="ProgramID, ProgramName, OrganisationName, StudyYearID, Workgroup, Pathway, FinishDate" OnDataBound="Apprenticeship_DataBound"> <Fields> <asp:BoundField DataField="ProgramName" HeaderText="Program:" /> <asp:BoundField DataField="StudyYearName" HeaderText="Study Year:" /> <asp

jquery: mouseout applies to nested elements

泄露秘密 提交于 2019-12-07 12:18:28
问题 ul with links nested in a div layer. mouse pointer goes over .title , ul is shown. the problem: mouseout() applies to nested elements mouseout() is for the div <div> <a class="title">Section A</a> <ul> <li><a href=''>link 1</a></li> <li><a href=''>link 2</a></li> <li><a href=''>link 3</a></li> </ul> </div> $('.title').mouseover(function() { $('ul').slideDown(); }) $('div').mouseout(function(){ $('ul').slideUp(); }); 回答1: Try $('selector').mouseleave(function(){}); 来源: https://stackoverflow

jQuery mouseover/mouseout flickers

落爺英雄遲暮 提交于 2019-12-07 09:11:56
问题 I have the following HTML <div class="individual"> <div class="change">change</div> <div class="picture"><img src....></div> </div> The .change has position: absolute; and is invisible. On mouseover .picture , I want .change to appear, and on mouseout, to disappear. If the individual clicks .change then something should happen. Right now, when mouse goes over change, then it is treated as mouseout of picture, and so change starts to flicker! I then made this jQuery: $('.change').mouseout

HTML/JavaScript: How to stop marquee onload, and start on mouseover?

折月煮酒 提交于 2019-12-07 08:17:21
问题 I'm using the following HTML piece of code to scroll text horizontally: <marquee behavior="scroll" direction="left" onmouseover="this.start();" onmouseout="this.stop();">Go on... hover over me!</marquee> The issue I have is that once you visit the page, the marquee starts scrolling automatically. What I want to do, is to freeze the marquee until you mouseover. 回答1: You could tinker with scrollAmount instead of calling start() and stop(), and just set scrollamount to 0 initially. E.g. <marquee

How to handle Mouseover in Selenium 2 API

早过忘川 提交于 2019-12-06 13:27:10
String strPrimaryNav = "MEN"; String strSecondaryNav = "Shoes"; String strTertiaryNav = "Golf"; driver.findElement(By.linkText(strPrimaryNav)).click(); WebElement weSecNav = driver.findElement(By.className("secondaryButton").linkText(strSecondaryNav)); Mouse mouse = ((HasInputDevices) driver).getMouse(); mouse.mouseDown(((Locatable)weSecNav).getCoordinates()); //just trying with for loop as the tertiary popup disappears quickly and hence getting ElementNotVisible Exception for (int i = 0 ; i< 2; i++){ mouse.mouseDown(((Locatable)weSecNav).getCoordinates()); //mouse.mouseMove(((Locatable

Raphael JS : mouseover/mouseout - problem with text-labels

ⅰ亾dé卋堺 提交于 2019-12-06 12:19:41
I use Raphael JS to create an SVG-map with area's and textlabels. I want the area to highlight when you move the mouse over it. I have this working now, but when I move the mouse over the label (in the center of the area) the mouseout-event for that area is triggered, so the area is unhighlighted again. Is there any way to prevent this from happening, or a workaround ? Create a rect with opacity set to 0 over the text and attach the event handlers on that rect. You can calculate the dimensions of the rect using getBBox() of the text. Creating a set via Paper#set was the approach that worked

EaselJS Change Color onMouseOver

北战南征 提交于 2019-12-06 10:24:02
I switched over to EaselJS after having muleheadedly implemented all mouse and vector related information in the HTML canvas element. I have gotten used to EaselJS and it is really neat. I especially like the containers and how simple they make drawing embedded shapes. However, I can't figure out how you, for example, implement a color change of a shape on a mouse over. Anything as simple as a rectangle changing color from red to green. Am I supposed to remove the shape from its container and create a new shape with the new color? To complicate matters, if one shape partially occludes another,

Selenium Webdriver + python - Not able to hide the tooltip after mouse over action

妖精的绣舞 提交于 2019-12-06 08:54:52
问题 I am testing tooltips on my web page using Selenium WebDriver with Firefox. I'm trying to hover over the element that has the tooltip attached. To test that the tooltip is displayed and then to hover over another element and test its respective tooltip. element_to_click = claim_section.find_element_by_class_name("arrowBox") hover_mouse = ActionChains(self.driver).move_to_element(element_to_click) hover_mouse.perform() At any given time, we see only one tooltip when I test it manually. But