1,229 questions
0
votes
1
answer
35
views
Using SendKeys to activate Remove Table of Contents command in ribbon menu - word vba
I am trying to use the Remove Table of Contents command found in menus via vba.
This is in Microsoft Word ribbon versions.
This command removes containers with a TOC field in it.
I know of no direct ...
3
votes
2
answers
155
views
How to Use Virtual-Key Code Constants in Powershell?
In a Powershell script, Mute is performed with:
(New-Object -ComObject WScript.Shell).SendKeys([char]173)
That works.
Windows reference lists constants for each key. Mute constant is VK_VOLUME_MUTE.
...
0
votes
3
answers
78
views
Error entering search after clicking a radio button using Selenium in Python
The aim of my program is to enter a set of postcodes into a flatshare website (https://www.spareroom.co.uk/flatshare-house-share/uk/) and return the number of rooms wanted and rooms available for each ...
1
vote
2
answers
110
views
SendKeys to FileDialog
I feel like I am 3/4 of the way to my objective.
I've created VBA that will populate an automated e-mail with attachments, based on the name of a folder the user previously selected.
It goes like this:...
0
votes
1
answer
454
views
How use SendKeys for send Up/Down arrow from main keyboard, not from numpad in VBA Excel?
I'm trying fill up web form by data from Excel byVBA.
I have a problem with movement on form's items by arrow keys.
Web form accept only arrow keys from main keyboard, arrow keys from numpad are used ...
0
votes
2
answers
57
views
Problem with entering numbers in an inputbox of a web element with Selenium Python
In a web autoamtion process with Selenium Python, I am trying to enter numbers like “1985225000” to an inputbox. MY problem is that such numbers, when inserted, turn out to be like” 198-522500-0”.
Can ...
1
vote
1
answer
138
views
Problem with send_keys method in selenium python
In a web automation code, I am trying to find a web element and write something in it. My code can find the web element but it fails at writing the text in the element by the send_keys method and the ...
0
votes
1
answer
398
views
How Can I Simultaneously Press Ctrl + A While Using Python Selenium?
I am using action chains and lines like the following:
actions.click(elementimclickingon).send_keys(Keys.CONTROL + "A").perform()
I have subsequent actions in the above line before, like ....
0
votes
1
answer
464
views
Browser operation with Excel VBA SendKeys
I plan to manually select the target Chrome tab and press the macro button from Excel to use it like an on-screen keyboard.
I would like to operate the Chrome browser using only Sendkeys, a standard ...
1
vote
1
answer
65
views
Through manual typing auto suggest options are shown but during typing using send_key in selenium through python language it does not work
from selenium import webdriver
from selenium.webdriver.chrome.service import Service
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.common.by import By
from selenium....
1
vote
0
answers
266
views
Alternatives to SendKeys in PowerShell for a script that manipulates MSWord
The issue I'm dealing with is the unreliability of the SendKeys function. Right now, I'm working on creating a script that opens a Word document, selects "Finish and Merge" -> "Edit ...
2
votes
2
answers
189
views
Input Simulation (Win + A) In PowerShell
I have a Python Script to enable/ disable Airplane mode using input simulation which works fine:
Win + A : To Open Action Center
Right Arrow (twice) : Navigate to Airplane toggle
Space : To Press OK
...
-1
votes
1
answer
214
views
C# code, SendKeys.Send gets "Access denied..." error occasionally [duplicate]
I have a C# code, in which I need to run a very old vendor binary to ASCII conversion program, here is relevant part of my code:
C# code with SendKeys.Send "Access denied..."
These codes are ...
0
votes
0
answers
37
views
sendKeys command doesn't work on VM from AWS selenium+java
I have a test suite with java+selenium and I have an issue with a payment sandbox. The issue occurs only when I excute the test on VM provided by AWS. I have a login page for the payment and sendKeys(&...
-2
votes
1
answer
84
views
Can someone figure this out why this is not working in windows 10? it works well in windows 11
I just found some code here. I love the idea of the display (UI) and have been using it to make some compiled fixer for my organization's daily operation.
Here is the full code:
@if (@CodeSection == @...
1
vote
1
answer
655
views
Is there a way to auto open an excel file and move it to the right monitor?
I have a VacationCalendar PC that has 2 monitors. I also have 2 excel spreadsheets, a LEFT and a RIGHT. I am wanting to open up the RIGHT spreadsheet and move it over to the RIGHT screen when the ...
1
vote
1
answer
57
views
Enter data in input field in Selenium
Below is the element details of input field
<input name="aadharNumber" placeholder="Enter Aadhaar No." error="[object Object]" maxlength="12" type="text&...
0
votes
0
answers
41
views
Python - Selenium - Navigation
Actually, I am trying to navigate without using click event or function in python as well as JavaScript. I have tried send keys - Keys. RETURN that is working for some elements and showing an error as ...
0
votes
2
answers
260
views
can't enter "d" "e" or "f" with sendkeys on Safari 17.3.1
I'm using safaridriver, included with Safari 17.3.1 (19617.2.4.11.12). I'm not having problems with the latest versions of Chrome, Edge or Firefox.
I have a web page with just a textarea input. If I ...
0
votes
0
answers
99
views
what is the correct syntax for SendKeys of Shift + Win + V?
So I wanted to close toast notification.
Press Shift + Win + V move the focus to the notification.
Then, Delete to dismiss it
I am wondering if C# or VB.net can achieve this without using 3rd party ...
0
votes
1
answer
828
views
How to press Ctrl plus w keys three times via SendKeys method in VBA?
The following code press the TAB key three times. The following code is okey.
SendKeys "{TAB 3}", True
How to press Ctrl plus w keys three times?
I have tried the following code but it ...
2
votes
1
answer
799
views
What is the difference between SendKeys wait argument false or true
Following link explains what is the difference between SendKeys wait argument false or true.
Wait Optional. Boolean value specifying the wait mode. If False (default), control is returned to the ...
1
vote
1
answer
42
views
How to append text in textarea having existing text in it
This is my current code
WebElement textarea_click = driver.findElement(By.xpath("//*[@id=\"gvPods_txt_Comment_" + i + "\" ]"));
...
0
votes
0
answers
144
views
SendKeys ctrl + s not saving file
I have a problem with SendKeys "^s".
If I save my csv file with ActiveWorkbook.Save I'm getting an error with another software that uses this csv file to input data to system. Could someone ...
-1
votes
1
answer
235
views
Java - SendKeys multiple times (Keys.ARROW_RIGHT)
Hi people: I'm trying o automate (Selenium with Java) a method that moves from a row to another (10 times) with the sendKeys. I tried with for cicle, but it's not working:
public void ...
2
votes
0
answers
112
views
c# How can I ensure that pressing F3 once triggers a method and holding it down triggers another method?
I registered a global hot key for the F3 key in the app. The app simply shows the message "Only pressed F3." when I press F3.
But as I keep pressing and holding the F3 key, it shows the ...
0
votes
1
answer
232
views
Selenium Send Enter Key returning error "Object required"
Automating filling in online form in Edge using Selenium within VBA but I am receiving an error message when trying to use the SendKeys for Enter. Note, there is not submit button, Enter is required.
...
0
votes
1
answer
85
views
Apply SendKeys in a loop to send email
I have an Excel workbook with business contacts. I need to send emails to some of them.
Outlook is in an Enterprise environment with User permissions. I cannot make changes to the Macro or Object ...
0
votes
1
answer
58
views
Java Selenium delete default input field value and add own values
I'm currently having to venture into Selenium due to a project.
I'm supposed to load a page automatically, log in, click and then fill in a table.
Everything works until I fill out the table.
My Code:
...
0
votes
2
answers
631
views
AttributeError: 'NoneType' object has no attribute 'send_keys' using selenium python
I'm using selenium python and I have this code, it finds a comment box and then I want to type there a comment.
the code finds the comment box but when it tries to type something the code breakes and ...
0
votes
1
answer
170
views
Python - Selenium: How can I upload File without Type: File
I´m trying currently upload a picture with Selenium to a site.I have tried
sendkeys(doesnt work because Type: File is missing),
autoit(work but I cannot change the Code and Fileurl in Python)
and some ...
0
votes
0
answers
227
views
VBA Selenium Basic SendKeys to save pdf link
Im trying to build a code on vba selenium to save a pdf link from a website on edge browser, but i cannot send the "control+s" and "enter" keys to open the "save as" ...
0
votes
3
answers
621
views
Selenium Web Driver - Send Keys Not working for Chrome (xpath)
Doing a simple web browser automation and attempting to enter login information to instacart.
Program runs but having difficulty getting send_keys to input text. I'm not sure if my Xpath is incorrect ...
1
vote
0
answers
130
views
How to fetch data from a cell or range of cells and put it into Sendkeys with the correct parameters and arguments. To input into a webpage box
Here is the Excel VBA code I have so far that opens Microsoft Edge:
Dim obj As New WebDriver
Sub testEdgeAuto()
obj.Start "edge", ""
obj.Get "https://www.redfin.com"
...
-1
votes
1
answer
51
views
How can I send " sign from vbs?
So I have this code:
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.SendKeys "{"}"
But VBS says there is a mistake. How can I fix this?
I was trying to put it ...
1
vote
1
answer
444
views
Tampermonkey send ctrl+s
How to use the ctrl+s key combination correctly with tampermonkey
?
The example code does not work correctly.
The alert is displayed, but the key combination is not sent.
Where is the error?
// ==...
0
votes
1
answer
2k
views
When using SendKeys in Excel VBA, certain alt shortcuts become greyed out
I'm trying to access the "Find & Select" menu in Excel by using SendKeys through VBA.
When I am simply in Excel, I can access the "Find & Select" menu via the following ...
0
votes
0
answers
99
views
autofill the box on the website and validating it
I would like to have the possibility to autofill the box on the website and validating it (Click OK) straight from the VBA code.
I've inspected the website and the situation looks pretty much like ...
0
votes
1
answer
171
views
Unable to copy bookmarked lines to clipboard / new page when running powershell -command to bookmark rows of data in notepad++
I have a PowerShell script which I intend to use to open specific csv files in Notepad++ then Search -> Bookmark rows based on one of the columns [Location] = 22102 and copy all bookmarked rows to ...
1
vote
0
answers
9
views
Selenium search and sendkey [duplicate]
drive.find_element(By.NAME("search_query")) search.send_keys("bitcoins") time.sleep(3)
I want click the youtube search,then write bitcoin and search it
-2
votes
2
answers
339
views
Simulating/Synthesizing simple key presses within an out-of-focus application window using PostMessage
Trying to write a simple demo program where keyboard input into the console gets translated to key presses on a target window belonging to some other application process. So if I type the character &...
0
votes
1
answer
213
views
Attempting to automate text-entry into a number of text fields in an uncontrolled (manually-opened) webpage in Chrome or Edge
I'm attempting to automate a repetitive data-entry task on a webpage. I need to enter text into a series of text fields that appear in a sidebar, which means that I have to
click on the visible text ...
0
votes
2
answers
559
views
Activate an open Word file in order to use SendKeys
From a macro in Excel, I open a .docm Word doc then search for "<>" (the only text on its line) and replace it with a page break. After the page break is inserted, it leaves an empty ...
0
votes
0
answers
1k
views
Send Keys from VBA to chrome by Chrome DevTools Protocol
I want to automate Chrome from Excel VBA. I am using the framework mentioned in : (Method 2 in the answer)
Automating Edge Browser using VBA without downloading Selenium
where in github located
https:/...
0
votes
1
answer
121
views
How to simulate pressing Fn+Delete
I'm tring to simulate pressing the commend FN+DELETE using Selenium and Typescript. But seems like FN doesn't exist in .sendKeys(Key.FN)
this.driver.actions().keyDown(Key.FN).sendKeys(Key.DELETE)....
0
votes
1
answer
189
views
SendKeys.SendWait() + Electron App Interaction: How to set the DOM3 keyboard event "code"?
I'm attempting to automate an action on an Electron/javascript-based game that requires keyboard input. Example: typing "a" is supposed to activate an ability in the game, and I want to ...
0
votes
1
answer
98
views
Sendkeys selenium (python)
I am scraping a website using selenium with python. This website has a search engine that allows you to write. When I include the text, before hitting enter, I need to wait some time, otherwise it ...
0
votes
1
answer
1k
views
How to pass multiple values in different lines using sendKeys() inside a text box
I wanted to pass multiple words in different line on to text box, can anyone help me finding out the solution
Expected output :
13456,Teena
12378,Tesa
130987,Jhon
2
votes
4
answers
1k
views
Python Selenium: send keys to tag 'input type="hidden" '
I try to log in to this web page with my credentials.
https://www.oddsportal.com/login
I am able to get the "username" and "password" input boxes but I am not able to send the data....
-1
votes
1
answer
60
views
Sendkey in selenium sends not a full value, instead of 0.7795 it sends 7795
First I get the value, then I convert it to float to multiply it, but when I send it back as a string to a webpage instead of 0.7795 it sends 7795. Code below:
values = driver.find_element(By.XPATH, &...