Time to upgrade! You only have until October 31, 2019 to move to Dynatrace, our all-in-one software intelligence platform. For details, see the Synthetic Upgrade Center and Dynatrace Synthetic documentation.

Create a custom locator

Use either of these methods in a Custom action to grab an element CheckInDate from the source code.

  • Using a custom locator such as this can be useful when you need to use an element from the source code within the control work space.
  • See the attached example script: Custom Locator.gsl.

Method 1

var target1 = new Locator({
"targetWindow": "gomez_top[0]",
"locators": [["css", "#CheckInDate"]]
var date1Field = target1.execute();

Method 2

var loc = new Locator();
var win = loc.findFrame('gomez_top[0]');