How to click on an element in JS - TestCafe?

Can I click on an element in JS - TestCafe?

Hi Emma,

You will need to click the element using the click() command:

driver.get("https://www.lambdatest.com")
element = driver.findElementById("Username").click();