Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Start running webdriver tests #13261

Closed
wants to merge 9 commits into from

Add alert.dismiss command to webdriver session.

  • Loading branch information
jdm committed Sep 13, 2016
commit c73ecf7029509542ea78214b7b9c443982702b8a
@@ -385,6 +385,7 @@ def start(self):
self.timeouts = Timeouts(self)
self.window = Window(self)
self.find = Find(self)
self.alert = Alert(self)
if self.extension_cls:
self.extension = self.extension_cls(self)

@@ -622,6 +623,16 @@ def rect(self):
def attribute(self, name):
return self.session.send_command("GET", self.url("attribute/%s" % name))


class Alert(object):
def __init__(self, session):
self.session = session

@command
def dismiss(self):
return self.session.send_command("POST", "alert/dismiss")


class ServoExtensions(object):
def __init__(self, session):
self.session = session
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.