WebDriverSessionClient.ipc 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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. endpoint WebDriverSessionClient {
  11. quit() =|
  12. get_url() => (URL url)
  13. set_url(URL url) =|
  14. get_title() => (String title)
  15. refresh() =|
  16. back() =|
  17. forward() =|
  18. get_window_rect() => (Gfx::IntRect rect)
  19. restore_window() =|
  20. set_window_size(Gfx::IntSize size) =|
  21. set_window_position(Gfx::IntPoint position) =|
  22. maximize_window() =|
  23. minimize_window() =|
  24. execute_script(String body, Vector<String> json_arguments, Optional<u64> timeout, bool async) => (Web::WebDriver::ExecuteScriptResultType result_type, String json_result)
  25. get_all_cookies() => (Vector<Web::Cookie::Cookie> cookies)
  26. get_named_cookie(String name) => (Optional<Web::Cookie::Cookie> cookie)
  27. add_cookie(Web::Cookie::ParsedCookie cookie) =|
  28. update_cookie(Web::Cookie::Cookie cookie) =|
  29. get_document_element() => (Optional<i32> document_element_id)
  30. query_selector_all(i32 start_node_id, String selector) => (Optional<Vector<i32>> elements_ids)
  31. get_element_attribute(i32 element_id, String name) => (Optional<String> atttibute)
  32. get_element_property(i32 element_id, String name) => (Optional<String> property)
  33. get_active_documents_type() => (String type)
  34. get_computed_value_for_element(i32 element_id, String property_name) => (String computed_value)
  35. get_element_text(i32 element_id) => (String text)
  36. get_element_tag_name(i32 element_id) => (String tag_name)
  37. take_screenshot() => (Gfx::ShareableBitmap data)
  38. }