How to set value in a text field with JS - TestCafe?

Can I set the value in a text field with JS - TestCafe?

Hi Emma,

To set a value in the test fireld, you can pass the below command:

driver.get("https://www.lambdatest.com")
element = driver.findelementbyid("Username")
element.sendkeys("some text")