Synthetic Classic has reached end of support and is no longer available. Existing Synthetic Classic customers have been upgraded to the all-in-one Dynatrace software intelligence platform.

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]');