| 735 | } |
| 736 | |
| 737 | void Server::PopulateCommandRepository() { |
| 738 | LOG(TRACE) << "Entering Server::PopulateCommandRepository"; |
| 739 | |
| 740 | this->AddCommand("/session", "POST", webdriver::CommandType::NewSession); |
| 741 | this->AddCommand("/session/:sessionid", "DELETE", webdriver::CommandType::Quit); |
| 742 | this->AddCommand("/status", "GET", webdriver::CommandType::Status); |
| 743 | this->AddCommand("/session/:sessionid/timeouts", "GET", webdriver::CommandType::GetTimeouts); |
| 744 | this->AddCommand("/session/:sessionid/timeouts", "POST", webdriver::CommandType::SetTimeouts); |
| 745 | this->AddCommand("/session/:sessionid/url", "GET", webdriver::CommandType::GetCurrentUrl); |
| 746 | this->AddCommand("/session/:sessionid/url", "POST", webdriver::CommandType::Get); |
| 747 | this->AddCommand("/session/:sessionid/back", "POST", webdriver::CommandType::GoBack); |
| 748 | this->AddCommand("/session/:sessionid/forward", "POST", webdriver::CommandType::GoForward); |
| 749 | this->AddCommand("/session/:sessionid/refresh", "POST", webdriver::CommandType::Refresh); |
| 750 | this->AddCommand("/session/:sessionid/title", "GET", webdriver::CommandType::GetTitle); |
| 751 | this->AddCommand("/session/:sessionid/window", "GET", webdriver::CommandType::GetCurrentWindowHandle); |
| 752 | this->AddCommand("/session/:sessionid/window", "POST", webdriver::CommandType::SwitchToWindow); |
| 753 | this->AddCommand("/session/:sessionid/window", "DELETE", webdriver::CommandType::CloseWindow); |
| 754 | this->AddCommand("/session/:sessionid/window/handles", "GET", webdriver::CommandType::GetWindowHandles); |
| 755 | this->AddCommand("/session/:sessionid/window/new", "POST", webdriver::CommandType::NewWindow); |
| 756 | this->AddCommand("/session/:sessionid/frame", "POST", webdriver::CommandType::SwitchToFrame); |
| 757 | this->AddCommand("/session/:sessionid/frame/parent", "POST", webdriver::CommandType::SwitchToParentFrame); |
| 758 | this->AddCommand("/session/:sessionid/window/rect", "GET", webdriver::CommandType::GetWindowRect); |
| 759 | this->AddCommand("/session/:sessionid/window/rect", "POST", webdriver::CommandType::SetWindowRect); |
| 760 | this->AddCommand("/session/:sessionid/window/maximize", "POST", webdriver::CommandType::MaximizeWindow); |
| 761 | this->AddCommand("/session/:sessionid/window/minimize", "POST", webdriver::CommandType::MinimizeWindow); |
| 762 | this->AddCommand("/session/:sessionid/window/fullscreen", "POST", webdriver::CommandType::FullscreenWindow); |
| 763 | this->AddCommand("/session/:sessionid/element/active", "GET", webdriver::CommandType::GetActiveElement); |
| 764 | this->AddCommand("/session/:sessionid/element", "POST", webdriver::CommandType::FindElement); |
| 765 | this->AddCommand("/session/:sessionid/elements", "POST", webdriver::CommandType::FindElements); |
| 766 | this->AddCommand("/session/:sessionid/element/:id/element", "POST", webdriver::CommandType::FindChildElement); |
| 767 | this->AddCommand("/session/:sessionid/element/:id/elements", "POST", webdriver::CommandType::FindChildElements); |
| 768 | this->AddCommand("/session/:sessionid/element/:id/selected", "GET", webdriver::CommandType::IsElementSelected); |
| 769 | this->AddCommand("/session/:sessionid/element/:id/attribute/:name", "GET", webdriver::CommandType::GetElementAttribute); |
| 770 | this->AddCommand("/session/:sessionid/element/:id/property/:name", "GET", webdriver::CommandType::GetElementProperty); |
| 771 | this->AddCommand("/session/:sessionid/element/:id/css/:propertyName", "GET", webdriver::CommandType::GetElementValueOfCssProperty); |
| 772 | this->AddCommand("/session/:sessionid/element/:id/text", "GET", webdriver::CommandType::GetElementText); |
| 773 | this->AddCommand("/session/:sessionid/element/:id/name", "GET", webdriver::CommandType::GetElementTagName); |
| 774 | this->AddCommand("/session/:sessionid/element/:id/rect", "GET", webdriver::CommandType::GetElementRect); |
| 775 | this->AddCommand("/session/:sessionid/element/:id/enabled", "GET", webdriver::CommandType::IsElementEnabled); |
| 776 | this->AddCommand("/session/:sessionid/element/:id/click", "POST", webdriver::CommandType::ClickElement); |
| 777 | this->AddCommand("/session/:sessionid/element/:id/clear", "POST", webdriver::CommandType::ClearElement); |
| 778 | this->AddCommand("/session/:sessionid/element/:id/value", "POST", webdriver::CommandType::SendKeysToElement); |
| 779 | this->AddCommand("/session/:sessionid/source", "GET", webdriver::CommandType::GetPageSource); |
| 780 | this->AddCommand("/session/:sessionid/execute/sync", "POST", webdriver::CommandType::ExecuteScript); |
| 781 | this->AddCommand("/session/:sessionid/execute/async", "POST", webdriver::CommandType::ExecuteAsyncScript); |
| 782 | this->AddCommand("/session/:sessionid/cookie", "GET", webdriver::CommandType::GetAllCookies); |
| 783 | this->AddCommand("/session/:sessionid/cookie/:name", "GET", webdriver::CommandType::GetNamedCookie); |
| 784 | this->AddCommand("/session/:sessionid/cookie", "POST", webdriver::CommandType::AddCookie); |
| 785 | this->AddCommand("/session/:sessionid/cookie", "DELETE", webdriver::CommandType::DeleteAllCookies); |
| 786 | this->AddCommand("/session/:sessionid/cookie/:name", "DELETE", webdriver::CommandType::DeleteNamedCookie); |
| 787 | this->AddCommand("/session/:sessionid/actions", "POST", webdriver::CommandType::Actions); |
| 788 | this->AddCommand("/session/:sessionid/actions", "DELETE", webdriver::CommandType::ReleaseActions); |
| 789 | this->AddCommand("/session/:sessionid/alert/dismiss", "POST", webdriver::CommandType::DismissAlert); |
| 790 | this->AddCommand("/session/:sessionid/alert/accept", "POST", webdriver::CommandType::AcceptAlert); |
| 791 | this->AddCommand("/session/:sessionid/alert/text", "GET", webdriver::CommandType::GetAlertText); |
| 792 | this->AddCommand("/session/:sessionid/alert/text", "POST", webdriver::CommandType::SendKeysToAlert); |
| 793 | this->AddCommand("/session/:sessionid/screenshot", "GET", webdriver::CommandType::Screenshot); |
| 794 | this->AddCommand("/session/:sessionid/element/:id/screenshot", "GET", webdriver::CommandType::ElementScreenshot); |
no test coverage detected