mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 00:17:46 +00:00
LibWeb+WebContent+WebDriver: Implement Get Alert Text
This commit is contained in:
parent
3e7d633954
commit
f9b8742fff
9 changed files with 47 additions and 0 deletions
|
@ -55,6 +55,7 @@ public:
|
|||
};
|
||||
bool has_pending_dialog() const { return m_pending_dialog != PendingDialog::None; }
|
||||
PendingDialog pending_dialog() const { return m_pending_dialog; }
|
||||
Optional<String> const& pending_dialog_text() const { return m_pending_dialog_text; }
|
||||
void dismiss_dialog();
|
||||
void accept_dialog();
|
||||
|
||||
|
@ -112,6 +113,7 @@ private:
|
|||
RefPtr<WebDriverConnection> m_webdriver;
|
||||
|
||||
PendingDialog m_pending_dialog { PendingDialog::None };
|
||||
Optional<String> m_pending_dialog_text;
|
||||
Optional<Empty> m_pending_alert_response;
|
||||
Optional<bool> m_pending_confirm_response;
|
||||
Optional<String> m_pending_prompt_response;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue