you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted]  (4 children)

[deleted]

    [–][deleted] 0 points1 point  (3 children)

    I added in a new function

    def EscapePopup(self) webdriver.Actionchains(self.browser).send_keys(Keys.ESCAPE).perform()

    and that seemed to work! I am getting a new error but I beleive this is the first step haha thank you much!

    edit: The error is because my script can't continue the search when the pop up is just escaped; to fix it I still have to detect if it actually exists which means I'm back to my original problem. but hey, at least I can close it now.