Your data. Anywhere you go.

New Relic for iOS or Android

Download on the App Store    Android App on Google play

New Relic Insights App for iOS

Download on the App Store

Learn more

Close icon

Scripted Synthetics Monitoring


Hi Folks,
Trying to setup Scripted Synthetics Monitoring for the following URL.

Have figured out elements for Username and Password. Unable to figure out element for “Login” button.
return $browser.findElement($“Username”)).sendKeys("***");
return $browser.findElement($“Password”)).sendKeys("***");

return $browser.findElement($driver.By.type(“Submit”)).sendKeys("***");


New Relic is unable to find find element by type for Login button to function.
return $browser.findElement($driver.By.type(“Submit”)).click();


Hi Phil,
We see the following error message.

TypeError: $driver.By.type is not a function
Please see screenshot.


TypeError: $driver.By.type is not a function
at eval (eval at (/opt/runtimes/3.0.0/modules/synthetics-runner/lib/job-resource/index.js:76:19), :34:42)
at ManagedPromise.invokeCallback_ (/opt/runtimes/3.0.0/node_modules/selenium-webdriver/lib/promise.js:1384:14)
at TaskQueue.execute_ (/opt/runtimes/3.0.0/node_modules/selenium-webdriver/lib/promise.js:3092:14)
at TaskQueue.executeNext_ (/opt/runtimes/3.0.0/node_modules/selenium-webdriver/lib/promise.js:3075:27)
at asyncRun (/opt/runtimes/3.0.0/node_modules/selenium-webdriver/lib/promise.js:2935:27)
at /opt/runtimes/3.0.0/node_modules/selenium-webdriver/lib/promise.js:676:7
at process._tickCallback (internal/process/next_tick.js:109:7)


The code editor has auto-complete. If you type, “$driver.By.”, a dropdown list of available options should appear.


How about $driver.By.css with an attribute selector?


Hi Phil,
We are all set with this request. Thank you!


Glad you got it figured out! Can you confirm what worked for you?




Awesome! Thanks for letting us know