blob: 6587d4124ed7bae29f01b6ce6eab71cbc683f671 [file] [log] [blame]
// Copyright 2017 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// List of action names for all action types.
syntax = "proto3";
package franky;
message Action {
enum AlertAction {
AutoDeclineAlerts = 0;
AllowAlerts = 1;
DismissAlertIfPresent = 2;
AcceptAlertIfPresent = 3;
}
enum ElementAction {
GetElement = 0;
GetElementBySeleniumLocator = 1;
GetElementsByID = 2;
VerifyElementIsAbsent = 3;
VerifyElementIsDisabled = 4;
VerifyElementIsDisplayed = 5;
VerifyElementIsEnabled = 6;
VerifyElementIsHidden = 7;
VerifyElementIsPresent = 8;
VerifyElementLabelContains = 9;
VerifyElementLabelEquals = 10;
VerifyElementNameContains = 11;
VerifyElementNameEquals = 12;
VerifyElementValueContains = 13;
VerifyElementValueEquals = 14;
VerifyElementAttributeCheckedEquals = 15;
VerifyElementAttributeClickableEquals = 16;
}
enum InputAction {
Type = 0;
}
enum MenuAction {
CloseAllIncognitoTabs = 0;
CloseAllTabs = 1;
OpenBookmarksMenu = 2;
OpenFindInPageMenu = 3;
OpenHelpMenu = 4;
OpenHistoryMenu = 5;
OpenNewIncognitoTab = 6;
OpenNewTab = 7;
OpenRecentTabsMenu = 8;
OpenReportAnIssueMenu = 9;
OpenRequestDesktopSiteMenu = 10;
OpenSettingsMenu = 11;
}
enum OmniboxAction {
GetOmniboxURL = 0;
LoadCurrentURLFromOmnibox = 1;
SearchFromNTP = 2;
SearchFromToolbar = 3;
VerifyOmniboxURLContains = 4;
VerifyOmniboxURLEquals = 5;
SearchFromWebviewOmnibox = 6;
}
enum OnboardingAction {
ByPassFirstRun = 0;
SignInFirstRun = 1;
ByPassExtraScreens = 3;
EnableRootFlag = 4;
}
enum ScrollAction {
Overscroll = 0;
ScrollToElement = 1;
ScrollToScreenLocation = 2;
SwipeBetweenScreenLocations = 3;
SwipeInsideElementWithOptions = 4;
SwipeWithCoordinates = 5;
PullUpChromeHome = 6;
}
enum SettingsAction {
AddAccount = 0;
ClearBrowsingData = 1;
RemoveAllAccounts = 2;
TapOnFirstAccountInSettingsAccounts = 3;
SignInWithAccountAlreadyOnDevice = 4;
}
enum SystemAction {
CloseApp = 0;
DeactivateAppForDuration = 1;
DisableAirplaneMode = 2;
DisableWiFi = 3;
EnableAirplaneMode = 4;
EnableWiFi = 5;
InstallApp = 6;
LaunchSplitViewApp = 7;
LockScreenOnElementForDuration = 8;
NavigateBack = 9;
NavigateToHomeScreen = 10;
ReinstallAndLaunchAndByPassFirstRun = 11;
ReinstallAndLaunchApp = 12;
ReinstallApp = 13;
RemoveApp = 14;
ResetApp = 15;
SetDeviceOrientation = 16;
VerifyDeviceOrientationEquals = 17;
EnablePermission = 18;
RemoveFile = 19;
RemoveCommandLineFile = 20;
PressAppSwitchKeyCode = 21;
OpenNotifications = 22;
PressEnterKeyCode = 23;
InputKeyCode = 24;
CloseNotificationsIfPresent = 25;
UnlockScreen = 26;
TakeScreenShot = 27;
LaunchPackage = 28;
DismissAllNotifications = 29;
SetSystemWebview = 30;
ClearPackageData = 31;
HideKeyboard = 32;
}
enum TapAction {
Tap = 0;
TapIfPresent = 1;
DoubleTap = 2;
LongPress = 3;
TapOnElementAtPoint = 4;
TapByIDAtIndex = 5;
TapUsingLocator = 6;
TapOnElementByID = 7;
TapOnElementByXPATH = 8;
TapOnElementByIDAtIndex = 9;
TapOpenInButtonOnPDF = 10;
}
enum TimeoutAction {
WaitForTimeInterval = 0;
WaitForElementToAppear = 1;
WaitForElementToDisappear = 2;
}
oneof action_type {
AlertAction alert = 1;
ElementAction element = 2;
InputAction input = 3;
MenuAction menu = 4;
OmniboxAction omnibox = 5;
OnboardingAction onboarding = 6;
ScrollAction scroll = 7;
SettingsAction settings = 8;
SystemAction system = 9;
TapAction tap = 10;
TimeoutAction timeout = 11;
}
}