const driver = new webdriver.Builder() .usingServer( https://${username}:${accessKey}@hub-cloud.browserstack.com/wd/hub ) .withCapabilities(capabilities) .build();
const searchBox = await driver.findElement(webdriver.By.name('q')); await searchBox.sendKeys('BrowserStack Automation'); await searchBox.submit(); console.log('Test completed'); } finally { await driver.quit(); } } app automate browserstack
# Perform actions search_box = driver.find_element(By.NAME, "q") search_box.send_keys("BrowserStack Automation") search_box.send_keys(Keys.RETURN) const driver = new webdriver
const username = 'your_username'; const accessKey = 'your_access_key'; await searchBox.sendKeys('BrowserStack Automation')