Questions tagged [sendkeys]

A program written in .NET which can simulate typing by sending one or multiple keystrokes to the active window just as if they were entered via the keyboard.

Issue encountered with Pytest Selenium due to elem.send_keys() causing a TypeError stating that an object of type 'NoneType' does not have a length

Struggling to input data into a login textbox using 'send_keys' function and encountering an error.. def wait_for_element(selenium, selenium_locator, search_pattern, wait_seconds=10): elem = None wait = WebDriverWait(selenium, wait_secon ...

A guide to pasting copied text from the clipboard using Selenium and Java on a Mac operating system

Having trouble pasting text into a textbox on MACOS? Trying to use the code snippet below, but Control + v and Command + v shortcuts are not working. It seems like this is a known issue, but unsure if it has been resolved yet. https://github.com/seleniumhq ...

The sendKeys command in WebDriver is failing to enter text into the Password field

Currently, I am delving into the world of selenium webdriver automation and have encountered an issue with the sendKeys command not working on Password type fields. After doing some research online, it seems like others are also facing the same problem but ...

Keystrokes malfunctioning on Firefox while functioning correctly on Chrome

I am currently in the process of developing a web scraping application using Python and Selenium to automate tasks on a server. Specifically, I am looking to create and schedule posts through CreatorStudio for sharing on Instagram. However, I have encounte ...

Selenium's SendKeys function fails to execute when the computer is locked

When filling a date in a text box using Python 3.9.5 and Selenium 4.1.0 with Microsoft Edge 98.0.1108.43 on Windows 10, I utilize the following code: #element is the web element I want to fill element = "element_name" date = driver.find_element(B ...

What are the advantages of using Selenium Edgedriver's Send Keys to select all and copy text?

Being a novice to using Selenium, I'm exploring this auxiliary library for the first time in VBA. I've opted to use the Web Driver for Microsoft Edge, and I'm encountering challenges with implementing send keys. Specifically, I am trying to select the ent ...

There was a limitation in Python that prevented the transmission of Backspace keys

Currently, I am facing an issue while attempting to download a file from the Thai government website. Despite my efforts to backtrack to the previous page, remove the old code (hscode), which I had already downloaded, and replace it with a new one, I encou ...

Typing into a form field using Selenium

I'm having trouble interacting with the payment information input fields. It seems they are nested within iframes, and I cannot switch between frames successfully. Attached is a snapshot of the HTML code and the corresponding webpage. Any assistance in res ...

Java Selenium - encountering issues with the sendKeys() method

There is an issue with the sendKeys function in my code: The method sendKeys(CharSequence[]) in the type WebElement is not applicable for the arguments (String) Error line of code: driver.findElement(By.name("username")).sendKeys("Bharat& ...

Using Selenium with JavaScript and Python to simulate key presses

Is there a way to simulate key presses as if typing on a keyboard? I am looking to programmatically click on an input element and then emulate the user typing by pressing keys. I prefer not to use XPath selectors combined with sendkeys or similar methods. ...