Double-clicks an element.

        :Args:
         - on_element: The element to double-click.
           If None, clicks on current mouse position.
338731
def double_click(self, on_element=None):
        
        if on_element:
            self.move_to_element(on_element)
        if self._driver.w3c:
            self.w3c_actions.pointer_action.double_click()
            for _ in range(4):
                self.w3c_actions.key_action.pause()
        else:
            self._actions.append(lambda: self._driver.execute(
                                 Command.DOUBLE_CLICK, {}))
        return self
780527
function(el)
	{
		if (el.tagName == 'A')
		{
			el.onclick = function(event)
			{
				window.location = el.href;
				event.preventDefault();
				return false;
			};
		}
	}
549239
def scroll_from_element(self, on_element, xoffset, yoffset):
        
        self._actions.append(lambda: self._driver.execute(
            Command.TOUCH_SCROLL, {
                'element': on_element.id,
                'xoffset': int(xoffset),
                'yoffset': int(yoffset)}))
        return self
556483
def click_element(self, locator):
        
        self._info("Clicking element '%s'." % locator)
        self._element_find(locator, True, True).click()
1267787
def press(self, coordinate, success=None):
        """"""
        if isinstance(coordinate, WebElement):
            coordinate.click()
        else:
            self.get_element(coordinate).click()
        if success is not None:
            assert self.is_available(*success)
810066
def select(self, element):
        
        self._field.validate_value(element)
        self._elements.add(element)
        self._sync_field()
522295
def on_mouse(self, event):
        '''
        
        '''
        # print('on_mouse')
        if not event.Dragging():
            self._dragPos = None
            return
        # self.CaptureMouse()
        if not self._dragPos:
            self._dragPos = event.GetPosition()
        else:
            pos = event.GetPosition()
            displacement = self._dragPos - pos
            self.SetPosition( self.GetPosition() - displacement )
1314638
def on_click(self, handler):
        
        self.on_change('active', lambda attr, old, new: handler(new))
12153
def __js_click(self, selector, by=By.CSS_SELECTOR):
        
        selector, by = self.__recalculate_selector(selector, by)
        css_selector = self.convert_to_css_selector(selector, by=by)
        css_selector = re.escape(css_selector)
        css_selector = self.__escape_quotes_if_needed(css_selector)
        script = ("""var simulateClick = function (elem) {
                         var evt = new MouseEvent('click', {
                             bubbles: true,
                             cancelable: true,
                             view: window
                         });
                         var canceled = !elem.dispatchEvent(evt);
                     };
                     var someLink = document.querySelector('%s');
                     simulateClick(someLink);"""
                  % css_selector)
        self.execute_script(script)
795602
def right_click(self):
        
        self.scroll_to()
        ActionChains(self.parent.driver).context_click(self._element).perform()
1084679
def OnDoubleClick(self, event):
        """"""
        node = HotMapNavigator.findNodeAtPosition(self.hot_map, event.GetPosition())
        if node:
            wx.PostEvent( self, SquareActivationEvent( node=node, point=event.GetPosition(), map=self ) )
121992
def _on_item_clicked(self, item):
        
        if item:
            name = item.data(0, QtCore.Qt.UserRole)
            if name:
                go = name.block.blockNumber()
                helper = TextHelper(self._editor)
                if helper.current_line_nbr() != go:
                    helper.goto_line(go, column=name.column)
                self._editor.setFocus()
1129308
def click(self, x, y):
        ''''''
        return self.server.jsonrpc.click(x, y)
334250
def on_click(self, button, **kwargs):
        
        if button in (4, 5):
            return super().on_click(button, **kwargs)
        else:
            activemodule = self.get_active_module()
            if not activemodule:
                return
            return activemodule.on_click(button, **kwargs)
146897
function on (el, event, handler) {
  if (el.addEventListener) {
    el.addEventListener(event, handler)
  } else {
    el.attachEvent('on' + event, function () {
      handler.call(el)
    })
  }
}
58490
def click(selector, find_by: :link_text)
      sleep Random.new.rand(1..2)
      with_frame do
        @driver.find_element(find_by, selector).click
      end
      sleep Random.new.rand(1..2)
    end
799624
def click_on_label(step, label):
    

    with AssertContextManager(step):
        elem = world.browser.find_element_by_xpath(str(
            '//label[normalize-space(text()) = "%s"]' % label))
        elem.click()