using WebDriverJS (the official Selenium Javascript API ) I am trying to click elements on a page, then switch to clicking elements in an Iframe on the same page, using javascript with Node. (NOT Java). I tried the following: driver.findElement(By.id('input1')).sendKeys('Registration bot'); ...