[Pkg-mozext-commits] [requestpolicy] 119/257: [tst][ref] R21n: get `_panel` differently

David Prévot taffit at moszumanska.debian.org
Thu Jan 28 03:20:04 UTC 2016


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository requestpolicy.

commit 4f83d20f3281f8fedcdd61370ffe10c44821f0f7
Author: Martin Kimmerle <dev at 256k.de>
Date:   Wed Oct 28 01:39:33 2015 +0100

    [tst][ref] R21n: get `_panel` differently
    
    The panel is the element with value "request-policy-meta-redirect".
    However, it's not the panel being an anonymous element, but the
    <xul:tabbox> element.
---
 tests/marionette/rp_puppeteer/ui/redirect_notification.py | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/tests/marionette/rp_puppeteer/ui/redirect_notification.py b/tests/marionette/rp_puppeteer/ui/redirect_notification.py
index ce72a78..0c54ae1 100644
--- a/tests/marionette/rp_puppeteer/ui/redirect_notification.py
+++ b/tests/marionette/rp_puppeteer/ui/redirect_notification.py
@@ -44,12 +44,10 @@ class RedirectNotification(BaseLib):
     def _panel(self):
         """The redirection notification bar in the tab currently focused."""
 
-        return (
-            self.marionette
-            .find_element("id", "content")
-            .find_element("anon attribute",
-                          {"value": "request-policy-meta-redirect"})
-        )
+        return (self.marionette.find_element("id", "content")
+                .find_element("anon attribute", {"anonid": "tabbox"})
+                .find_element("css selector",
+                              "[value='request-policy-meta-redirect']"))
 
     @property
     def _close_button(self):

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/requestpolicy.git



More information about the Pkg-mozext-commits mailing list