Commit 6147d13f authored by brizental's avatar brizental Committed by Pier Angelo Vendrame
Browse files

fixup! TB 43817: Add tests for Tor Browser

Bug 43243: Change the way to get the IP address from check.tpo. Previous
approach was failing on Android.
parent f3611215
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -31,8 +31,11 @@ class TestCircuitIsolation(MarionetteTestCase, TorBrowserMixin):
            By.CLASS_NAME,
            "off",
        )
        ip = self.marionette.find_element(By.TAG_NAME, "strong")
        return ip_address(ip.text.strip())
        ip = self.marionette.execute_script(
            "return document.querySelector('strong').textContent"
        ).strip()

        return ip_address(ip)

    def extract_generic(self, url):
        # Fetch the IP address from any generic page that only contains