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


#1

Hi Folks,
Trying to setup Scripted Synthetics Monitoring for the following URL.
https://providernetwork.brighthorizons.com/

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

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


#2

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


#4

Hi Phil,
We see the following error message.

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


#5

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)


#6

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


#7

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


#8

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


#9

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


#10

$driver.By.xpath
thanks.


#11

Awesome! Thanks for letting us know