Synthetic Browser Scripts 

Example to access a Instana Website and login
(async function() {

  try {

    console.log("STARTING TEST");

    let startTime = Date.now();

    // Go to login page

    await $browser.get('https://your instana site ');


    // Fill in the email

    let elem_userid = await $browser.waitForAndFindElement($driver.By.id("email"), 10000);

    await elem_userid.click();

    await elem_userid.clear();

    await elem_userid.sendKeys($secure.user);


    // Fill in the password

    let elem_password = await $browser.waitForAndFindElement($driver.By.id("password"), 10000);

    await elem_password.click();

    await elem_password.clear();

    await elem_password.sendKeys($secure.password);


    // Click the "Sign In" button using class selector

    let signInButton = await $browser.waitForAndFindElement($driver.By.css("button.in-button"), 10000);

    await signInButton.click();


    let endTime = Date.now();

    let latency = endTime - startTime;

    console.log(`Latency: ${latency} ms`);

    await $browser.sleep(1000);

    // Keep the browser open for 60 seconds

    await $browser.takeScreenshot();


//    await $browser.sleep(60000);


  } catch (error) {

    console.error("ERROR:", error.message);

    throw error;

  }

})();


reference:

https://github.com/instana/synthetic-browser-script?tab=readme-ov-file#1-supported-platforms 

https://www.ibm.com/docs/en/instana-observability/current?topic=scripts-browser-api-reference https://www.selenium.dev/documentation/webdriver/elements/locators/ 

https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_selectors , use this to create secure credentials for synthetic website testing