Questions tagged [click]
In user interfaces, click refers to the depressing of a mouse button or similar input device.
9,409
questions
0
votes
0
answers
10
views
Dispatching a click event on htmlElement with an embedded script only works on first of multiple elements
I have a chrome extension that injects an embedded javascript file into a webpage, and then attempts to 'click' multiple elements on the page. HTMLElements are passed one a time as a 'selection' to a '...
0
votes
0
answers
4
views
How to scrape a PowerBI table from a website using python
I have been trying to scrape the PowerBI table from this URL in python and have been unable to do so:
https://www.iadb.org/en/who-we-are/transparency/sanctions-system/sanctioned-firms-and-individuals
...
-1
votes
1
answer
32
views
Click a custom button using Selenium with Python3
I am trying to use Selenium to click the "button" with the text "Expand all" (see attached screenshot). I am using Selenium v4.15.2. Each line below represents some test which ...
1
vote
1
answer
48
views
How are images and src links stored as variables to be selected in JS?
Attempting to create functionality for an image selector carousel
functionality of image selector:
- click an img in container below main image
- clicked img displays in main image container
- ...
0
votes
1
answer
36
views
Python click shell command with arguments
I am trying to build a command line interface using click-shell in python but I am unable to figure out how to provide inputs together with the commands. That is, say I have a function/command named ...
0
votes
2
answers
52
views
Javascript click() function clicking all the buttons at the same time
I want to click all the buttons at a website but my code tries to click all 2000 buttons at the same time and because of that chrome fails. How can I make it click one by one to the all buttons so it ...
0
votes
4
answers
85
views
How to make a button clickable once?
In my code I want a button to be clickable once. I put 2 buttons below me because I want to disable the other button for use when one of the buttons are clicked.
<div style = "position:...
0
votes
0
answers
9
views
How to add AMP User Events with NextJs
<amp-script layout="container" script="hello-world">
<div style={{ width: "90%" , display: "flex" , justifyContent: "end" , alignItems: &...
0
votes
0
answers
6
views
How to click in for loop iteration
var aa = document.querySelectorAll('.x5yr21d .xjkvuk6');
var i = 1;
function myLoop() {
setTimeout(function() {
console.log(i);
console.log(aa[i]);
// I want click here ...
0
votes
2
answers
67
views
What element do you target to click a checkbox with selenium webdriver?
I am trying to click on a checkbox on a website using selenium webdriver. The HTML for the checkbox is this following:
<input type="checkbox" name="registrationForm:certIndCB" ...
0
votes
1
answer
43
views
How to assign different audio to different buttons after clicked event
<h1 id="title">Drum 🥁 Kit</h1>
<div class="set">
<button class="w drum">w</button>
<button class="a drum">a</...
0
votes
1
answer
40
views
How to open the event handler to a link button in a WebForm (VB.net)
I did my first app but I am having hard time to find the event handler to my link button which I have created. I connected my gridview to my SQL file, did validations all I have to do now is to "...
0
votes
0
answers
6
views
Setting the duration of a click on robot framework
I'm writing some automation for an android device and I need to click a point but the button I'm trying to press has a long press function to bring up a drop down menu. I can not seem to change the ...
-2
votes
0
answers
12
views
Hello! I use an excel VBA code that when I click on a colored cell it removes the color, I need a small modification on this code
I have this VBA code that I use in my excel worksheet, it works beautifully but I just need a small modification in it, this code removes the background color on any cell that I click anywhere in the ...
0
votes
0
answers
28
views
I want to filter a queryset according to which button is pressed
i am quite new to django. I have a Task model which has various fields such as date, task name, description, is_completed, level of importance. I what to filter the result according to which button ...
0
votes
0
answers
11
views
powerapp button submit email when clicked
I created a powerapp that links to a sharepoint list which contains a list of expired laptops. I need help creating a button within the app that will remove the item from the sharepoint list and send ...
0
votes
0
answers
11
views
Reference a marker with an id
I have an array of element that are showed on the map with markers. I want to set some property when i click a button contained in a popup on the marker, but when i do that, it apply the proprerty to ...
0
votes
0
answers
5
views
Argument of type click.File, but closing the file early?
The click.File() type is useful for handling - as stdin, as well as automatically closing the file safely upon command exit.
However, if my program might run for a long time, I don't want to leave ...
2
votes
0
answers
37
views
Unactive links and not clickable elements in Google Chrome
Sometimes I have problem when few elements on page are not clickable. For example if I hover on button clickable can be image on this button, but not a text.
I have the last version of Google Chrome ...
0
votes
0
answers
4
views
in React project component click event is PARTLY triggered when clicked
I´m working on a react project where I have a dropdown select to choose options, each option has some padding, and a onClick to trigger a onSelect function to select the item and close the dropdown ...
0
votes
2
answers
55
views
jQuery on click on a child element add class to a non-direct parent
I am using the code below to add a class to my menu section when I hover an item on my menu :
<script>
jQuery(document).ready(function() {
jQuery('.has-children').hover(function(){
...
0
votes
0
answers
34
views
How to select radio button using Robot Framework?
<input aria-invalid="false" autocomplete="off" id="BaseId" type="text" class="MuiInputBase-input MuiInput-input MuiAutocomplete-input MuiAutocomplete-...
0
votes
1
answer
43
views
Jquery not detecting click after appending new html
I have a text box that is using live search functionality. The test HTML works great, click and it adds to the log like it should. Problem is, once I use the search box and new "identical" ...
0
votes
0
answers
6
views
I am making a focus pomodoro but i have a problem in click buttons, they are not interact and do not know more what can i do
Here I will leave printouts of the code that may be usefulenter image description here[enter image description here]enter image description herehere I execute the function in the main file
I would ...
0
votes
1
answer
14
views
After audio loop smooth start/end, starting smooth another loop by click
What works :
On my page I have several buttons (by divs: b1, b2, b3) and when I click them, they fadeIn their own sound loop smoothly. If I click on the back home button, the played sound fadeOut ...
0
votes
1
answer
18
views
How can I make true-false on every click in Python?
I'm trying to improve myself on a project in Python, but I'm stuck somewhere. The problem is; I want the global variable I defined to change to true-false every time I left click with the mouse. This ...
-1
votes
1
answer
46
views
Mouse clicks when some color appear in python
How can I make in python a code, that when some color appear on a part of the screen, the mouse clicks?
For example: I enter "humanbenchmark" site, go to reaction game and when the green ...
2
votes
2
answers
34
views
Neither pyautogui nor pydirectinput works when I try the click function
I'm trying to use the click function. Even though the cursor moves to the exact coordinates, it doesn't click, and the process finishes with code 0
import tkinter as tk
import pydirectinput as p
...
0
votes
0
answers
20
views
setAutoCancel(true) not working when notification has action
I'm trying to implement a notification with 2 actions added and let it be cancelled once one of the actions is called but this doesn't happen.
Setting autoCancel and contentIntent make the ...
0
votes
0
answers
46
views
How to patch a click cli app for unit testing
I have a cli tool written in Python using Click:
cli/main.py
import click
from datetime import *
from .utils import fn
@click.group(invoke_without_command=True, context_settings = { '...
0
votes
1
answer
106
views
JavaScript Click does not work on Google translate image
I try to code JavaScript extension for translate an image which is in the windows clipboard.
Site page web: https://translate.google.fr/?hl=fr&sl=auto&tl=fr&op=images
An image is already ...
0
votes
1
answer
32
views
No click event on <option> in edge using jQuery
Just figured that there is no click event fired in MS Edge when clicking on a select option.
Here is the code using jQuery 1.9.1:
// data-hide - hide element in data-hide attribute onClick
$("[...
1
vote
1
answer
35
views
Click on overlay for closing the modal not working
I use react-modal in next.js
I can close my modal clicking on the x button, but i want to be able to close it when i press outside of the modal. I searched I found the property ...
0
votes
0
answers
14
views
Click - How to test a group that modify the context?
I'm making a CLI using click.
I have a group that initiate value in context.obj :
@click.group()
@click.pass_context
def main(ctx):
ctx.ensure_object(dict)
ctx.obj["auth"] = ("...
0
votes
0
answers
11
views
How to click in a place on chrome opened window with exaxt coordination in selenium python?
I want to click in exactly pointed place in the image below.
I tried this methods:
actions.move_by_offset(element, 91, 114).click().perform()
actions.move_to_element_with_offset(element,91 ,114).click(...
0
votes
1
answer
22
views
How to click in a place with exaxt coordination in selenium python?
I want to click in exactly pointed place in the image below.
I tried by actions in selenium. But it doesn't work like in below :
mouse_tracker = driver.find_element(By.ID, "mouse-tracker")
...
0
votes
0
answers
29
views
Create C# method which do specific task when a programm is run with shortcut
I have a programm written on c# in Visual Studio by another programmer and I want it to do specific task when I run it with shortcut.
Now the mechanism is working, when the application is re-launched, ...
0
votes
0
answers
11
views
How to expand ComboBox to see hidden childelements without physical click?
Example Site:
https://ariakit.org/examples/combobox-links
How can I "open" the combobox from the Chrome Dev Tools (or similar) console to show the sub-elements that are hidden until combobox ...
0
votes
0
answers
43
views
Python Selenium doesn't click on element
I want to create a code that dispute copyrights on youtube studio but when selenium have to click the button in the photo(with xpath://*[@id="text-item-6"]/ytcp-ve/tp-yt-paper-item-body/div/...
0
votes
1
answer
44
views
Selenium unable to find element that soup can so unable to click using python selenium and Beautiful soup
I am trying to click on a onclick item but Selenium doesn't find it.
Element is as follows.
<a tabindex="0" onkeypress="loginKeyboardEvent(event)" role="button" aria-...
0
votes
0
answers
22
views
clicking element identified by XPath returns an error
I used to use the following syntax in chrome console to click on an element for testing
$x('somexpath expression').click()
but now when trying to execute this code I get an error
VM234:1 Uncaught ...
0
votes
0
answers
6
views
Page Views, Click Counts for Users in a microsite
I am working on web app, where users that have registered account with my website will have a custom page that they can share with their network.
I am currently researching on providing a feature ...
0
votes
0
answers
6
views
Once the first selection done then cursor should start to click the second one but if i give focus () is not working for select element type
Am selecting the fist select option then once value changes cursor should move to next select field but for other input or text area focus() function working.
<select type="text" class=&...
0
votes
1
answer
44
views
Why does selenium .click() open a JavaScript rendered page in a new tab?
I am writing a web scraper for a page build with asp.net and there are links in the page that are JavaScript rendered with a doPostBack call like this:
<a href="javascript:__doPostBack('ctl00$...
0
votes
0
answers
15
views
Click a button then a random hotkey and print the hotkey as text on the button [duplicate]
I have a button and I want it so when you click the button the text will change to :
Enter your button or mouseclick now.
and when the button or mouseclick is pressed/clicked it will print the hotkey ...
0
votes
1
answer
35
views
C#: How to switch one property on when another property turns off on the map editor in real time?
I am trying to make a C# code to turn on one property item, "property 2," when "property 1" is off on the property grid view in real time, respectively. In the graph, I put the ...
0
votes
0
answers
18
views
access element html using selenium python
So I have an HTML code as follows. So in that HTML code, I want to retrieve the PODES button. Therefore, I've implemented the following code to retrieve the PODES button
<transform _ngcontent-kts-...
0
votes
0
answers
32
views
Change text in a lexical editor using chomre extension
I am attempting to create a Chrome extension that can input text into a text box automatically when a user clicks a button. I've experimented with different approaches like using innerHTML and ...
0
votes
2
answers
65
views
How to press and release a button in javascript?
I want it to change color when the button is clicked and I implement it in code. But how can I make the button change to the original color when pressed again? So I want the button to turn black when ...
0
votes
2
answers
100
views
Cypress: after clicking button page doesn't open [closed]
I need to click search button which should open a new page with search result. But click() function of does not work. Cypress clicks the button, but there is nothing happens, the current page just ...