Questions tagged [sendkeys]

A .NET class that sends one or more keystrokes to the active window as if they were typed at the keyboard.

Filter by
Sorted by
Tagged with
0 votes
0 answers
4 views

how to close the file upload window after the file is being uploaded in selenium-ide 4.0.0-alpha.36 release?

I'm tying to test a react ionic project that contain file upload in it. I'm cable of selecting the file using type command but the file upload window is not dismissed. Most of the solutions that are ...
-1 votes
1 answer
29 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 ...
0 votes
1 answer
41 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
63 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
36 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
0 answers
50 views

How to perform [System.Windows.Forms.SendKeys]::SendWait("Clear{Enter}") on remote systems from local

I have written a PowerShell script to perform few tasks like: Update/ downgrade firmware of drives. Open a special PowerShell (it just preloads other ps.1 scripts in the system) window using desktop ...
  • 3
0 votes
1 answer
41 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
0 votes
0 answers
11 views

SendKeys: When sending to a certain application it does not work on all computers

First time caller long time listener. Windows 10/11 .Net 4.52 Sendkeys command I have a simple application that uses the sendkeys command, its written in VBNet framework 4.5.2 and designed to send ...
  • 1
-2 votes
2 answers
57 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
43 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
54 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 ...
  • 11
0 votes
0 answers
171 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
32 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)....
  • 21
0 votes
1 answer
42 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 ...
  • 488
0 votes
0 answers
49 views

Python Selenium 'post' button of Facebook is not working

Previously I asked about the Python Selenium .send_keys() only sending first character of my string. The issue has now been resolved, but the post button is no longer functional. The post button ...
  • 33
0 votes
1 answer
49 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
178 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
240 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
53 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, &...
  • 41
0 votes
0 answers
16 views

Get a file with C#, selenium and a selector without input [duplicate]

I have this selector #TrademarkImportView #inputFileDialog it's not a input or button if trying to using the sendkeys(path) it's show element not interactable there is a way that can I get a file ...
1 vote
1 answer
112 views

How to rename an Excel table with VBA when I don´t know its name using "Send Keys" function?

I´m trying to create a macro that can change the name of a table without having to indicate the table or the sheet names. The only way to change the name of a table I found was: ActiveSheet....
0 votes
0 answers
25 views

Sendkeys envia apenas 1 caracter da palavra escolhida

Estou tentando enviar um texto para um elemento html no WhatsappWeb, este elemento é o campo onde o usuário digita sua mensagem. Porém, quando eu tento adicionar um texto a este campo usando o método &...
0 votes
1 answer
66 views

Impossible to get html element(s) using multiple classes with Selenium VBA

I can't get to an element present on an HTML page with a Selenium command. I tried everything: find with Class, Id and CSS, but nothing works. Maybe with the Path search method, but not knowing it, I ...
0 votes
0 answers
20 views

Select multiple text in 1 combo box (span) suing send.keys

I am new to python and I am struggling to get multiple text in combo box (span) in web browser. It's taking single text or value in the list which I am applying. I tried with the lists, dict, ...
0 votes
0 answers
216 views

Sending text in python selenium using javascript execute_script()

I have requirement of passing the lengthy text to input text field, I tried to use javascript and used below two approaches but none of them working, Could someone please help what could be the issue? ...
3 votes
1 answer
247 views

What is Application.Sendkeys for "Windows" key in VBA?

There is no documentation of "windows" key :https://learn.microsoft.com/en-us/office/vba/api/excel.application.sendkeys I wanted a combination of "Windows+UP" key to Maximize ...
0 votes
0 answers
23 views

Use Random function for send.key different values to two different fields

I want send.key different xpaths’ and need two different random number but when create random number it sent same values to xpaths’ for ex. i want send a and B fields keys and a >b and values ...
0 votes
1 answer
62 views

Format number - plus (+) sign

I set up macro, that fills my PDF form. I need plus sign in front of positive numbers, like +2,75. I'm using this bit of code. Application.SendKeys Range("D" & CustRow).Value, True I've ...
  • 1
0 votes
0 answers
34 views

Trying to Copy and Paste a page into an Excel Worksheet

Good Evening, im wondering if anyone can point me in the right direction. what i am trying to do is. Load a page. in an IE Html Object. and then unmerge the content, Sub Button5_Click() Dim IE As ...
0 votes
0 answers
28 views

Sendkeys style function for C# console application [duplicate]

I am trying to automate a process using a third party program in a C# console application. After my program starts the third party application (wxPirs.exe) I would like to wait (Thread.sleep) for 5 ...
0 votes
1 answer
42 views

Sending Keystrokes To A WebBrowser In A User Control Using C#

I am trying to SendKeys to a user control which has a web browser inside. I haven't found a decent solution apart from copying the data to a clipboard and pasting it inside the control with a button. ...
-1 votes
1 answer
192 views

Powershell [System.Windows.Forms.SendKey], ALT don't work properly

I have powershell script that automate some tasks I am doing. We are using Citrix and in order to get to an app in Citrix I am using Selenium. The main problem in Citrix is that I can only use ...
0 votes
0 answers
60 views

selenium send_keys() on a site did not recognise Cyrillic input

I'm a newbie and stack at the beginning of Big journey My problem is: I've got a site, where I try to input information in Cyrillic when I input information manually everything is fine even if I ...
  • 1
0 votes
0 answers
9 views

Sending hotkey strokes to Tablecurve 2D

I need to process about 3000 sets of data through TableCurve 2D, to get the correlation coefficients of each data set, using the same equation model. I have used autohotkey with success, but would ...
0 votes
1 answer
92 views

Is there a way to Send Numpad3 + Numpad4 keys while holding Left ALT in c# Windows Desktop Applicationto get double quotes?

I have a desktop appcalition project which sends Keys with SendKeys.Send() function. I'm trying to send double quotes ("). SendKeys.Send("\\""); is not a solution for my project. ...
0 votes
0 answers
83 views

Trying to pass values from SQL SERVER table in sendKeys (Selenium & JAVA) - AVOIDING HARDCODE, best way to achieve that

I'm trying to pass a value to the sendKeys function from 2 different SQL SENTENCES. I want to execute a SQL SENTENCE (SQL SERVER database), copy the value and place it inside the sendKeys function. ...
0 votes
0 answers
46 views

Best Method for Logging Into QuickBooks Desktop on Locked Machine

I am working on an automation project that involves opening an application, in this case QuickBooks Desktop, and entering in some information to login. The problem I am running into is that I cannot ...
0 votes
1 answer
54 views

Sending and F5 to firefox

I know this has most likely been asked before but I don't seem to be able to get it working. I have a simple bit of code that starts a Firefox browser using a browser profile. This works great. ...
0 votes
0 answers
217 views

How can I send Shift + (Right Control Key) using VBA?

I have a slightly less than usual application that we are writing an automation script against using VBA, and there is a need to send the keystroke +. Is this possible? We can get the right ctrl key ...
1 vote
1 answer
150 views

How cani fix the send_keys Attribute Error?

I am trying to write a search on the google search bar. import time from selenium import webdriver from selenium.webdriver.common.keys import Keys driver = webdriver.Chrome("C:\\Users\\HP\\...
0 votes
0 answers
43 views

change window focus to InstallShield Wizard ran from .msi

I am trying to install a .msi file through PowerShell script with sendkeys to send keystrokes to the InstallShield Wizard once it launches. The msi is a bit wonky and won't take parameters required ...
2 votes
2 answers
128 views

Running SendKeys commands from a .lnk (shortcut) with powershell doesn't work

I'm playing around with SendKeys and powershell. I tried to close the active window with SendKeys (ALT + F4) after running a shortcut. I got this working with adding the following command to the ...
1 vote
2 answers
975 views

Copy text in python and paste by Ctrl + V in webdriver

I have one site where I can't enter a password using send_keys , I have to use Ctrl+V there. But I don't know how this can be done, because I have Passwords, where all passwords are stored and I need ...
0 votes
1 answer
191 views

C# Sendkeys ALT + SHIFT

I want to call the Switch language options on Windows, basically pressing the key ALT + SHIFT from C#. I read the answer from here How to start windows "run" dialog from C# This is what I ...
2 votes
1 answer
42 views

File upload using SendKeys in Selenium not working

I have following code IWebElement chooseFile = driver.FindElement(By.XPath("//button[@id='btnSelect']")); chooseFile.SendKeys(@"D:\Workspace\Base Version (Do Not Use)\file.tar.gz");...
0 votes
0 answers
85 views

AppActivate Restore Active Window App in VBA

I'm trying to restore a minimize active window app after using AppActivate by using SendKeys, however the option did popup but it didn't click the "Restore". I believe this can be done by ...
1 vote
1 answer
682 views

vba selenium sending keys

I am trying to data scrape LinkedIn page. I successfully sign in, input search value to inputbox, but after cannot send key enter. Code is below. I think there was something like for enter sendkeys. &...
  • 523
0 votes
2 answers
315 views

Python Selenium send_keys writes only one character in WhatsaApp Web's message box

I'm trying to send automatic messages on WhatsApp Web (MacOS, Firefox), I want to use Selenium (pywhatkit also works), but send_keys sends only the first one character. All the "import" of ...
  • 1
0 votes
0 answers
29 views

In Selenium Python Tab button action is happening at the Edit menu instead of navigating inside the page

element = driver.find_element(By.XPATH, "//*[@id='uniqName_6_4']") element.send_keys(Keys.TAB) My code is executing without any errors but the Tab button action is happening at Safari ...
  • 1

1
2 3 4 5
25