{
WebDriver driver = getDriver();
// First scroll the element into view, if needed, by moving the mouse to the top left corner of the element.
new Actions(driver).moveToElement(driver.findElement(locator), 0, 0).perform();
// Then scroll the page up a bit so that the element is not at the top of the window where the floating menu is.
driver.findElement(By.xpath("//body")).sendKeys(Keys.ARROW_UP);
}
/**
* Expands the object with the given number of the specified XClass. You need to call this method before editing any
* of the properties of the specified object using the object editor because the form elements used to edit the