WebDriverSessionClient.ipc 1.2 KB

12345678910111213141516171819202122232425262728293031
  1. #include <AK/URL.h>
  2. #include <AK/Vector.h>
  3. #include <LibGfx/Point.h>
  4. #include <LibGfx/Rect.h>
  5. #include <LibGfx/ShareableBitmap.h>
  6. #include <LibGfx/Size.h>
  7. #include <LibWeb/Cookie/Cookie.h>
  8. #include <LibWeb/Cookie/ParsedCookie.h>
  9. #include <LibWeb/WebDriver/ExecuteScript.h>
  10. // FIXME: This isn't used here, but the generated IPC fails to compile without this include.
  11. #include <LibWeb/WebDriver/Response.h>
  12. endpoint WebDriverSessionClient {
  13. quit() =|
  14. get_title() => (String title)
  15. refresh() =|
  16. back() =|
  17. forward() =|
  18. serialize_source() => (String source)
  19. execute_script(String body, Vector<String> json_arguments, Optional<u64> timeout, bool async) => (Web::WebDriver::ExecuteScriptResultType result_type, String json_result)
  20. get_all_cookies() => (Vector<Web::Cookie::Cookie> cookies)
  21. get_named_cookie(String name) => (Optional<Web::Cookie::Cookie> cookie)
  22. add_cookie(Web::Cookie::ParsedCookie cookie) =|
  23. update_cookie(Web::Cookie::Cookie cookie) =|
  24. scroll_element_into_view(i32 element_id) => ()
  25. is_element_enabled(i32 element_id) => (bool enabled)
  26. take_screenshot() => (Gfx::ShareableBitmap data)
  27. take_element_screenshot(i32 element_id) => (Gfx::ShareableBitmap data)
  28. }