public bool ScrollIntoView(string controlId, int ordinal = 0, string parentId = null) { var controlIdentifier = CreateAutomationIdentifier(controlId); var parentIdentifier = CreateAutomationIdentifier(parentId); var command = new ScrollIntoViewCommand { AutomationIdentifier = controlIdentifier, Ordinal = ordinal, ParentIdentifier = parentIdentifier }; var result = SyncExecuteCommand(command); return(result is SuccessResult); }
public bool ScrollIntoView(string controlId, int ordinal = 0, string parentId = null) { var controlIdentifier = CreateAutomationIdentifier(controlId); var parentIdentifier = CreateAutomationIdentifier(parentId); var command = new ScrollIntoViewCommand { AutomationIdentifier = controlIdentifier, Ordinal = ordinal, ParentIdentifier = parentIdentifier }; var result = SyncExecuteCommand(command); return result is SuccessResult; }