mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 02:58:12 +00:00

This allows the WebDriver to create a cookie. We use a Web::Cookie::ParsedCookie to transport the data through IPC to take advantage of the RFC6265 Section 5.3 implementation in the CookieJar.
20 lines
543 B
Text
20 lines
543 B
Text
#include <AK/URL.h>
|
|
#include <AK/Vector.h>
|
|
#include <LibWeb/Cookie/Cookie.h>
|
|
#include <LibWeb/Cookie/ParsedCookie.h>
|
|
|
|
endpoint WebDriverSessionClient {
|
|
quit() =|
|
|
|
|
get_url() => (URL url)
|
|
set_url(URL url) =|
|
|
get_title() => (String title)
|
|
refresh() =|
|
|
back() =|
|
|
forward() =|
|
|
get_all_cookies() => (Vector<Web::Cookie::Cookie> cookies)
|
|
get_named_cookie(String name) => (Optional<Web::Cookie::Cookie> cookie)
|
|
add_cookie(Web::Cookie::ParsedCookie cookie) =|
|
|
update_cookie(Web::Cookie::Cookie cookie) =|
|
|
|
|
}
|