Bug 1275311 - Get property when in content in security notification UI test; r?whimboo draft
authorAndreas Tolfsen <ato@mozilla.com>
Tue, 24 May 2016 17:28:38 +0100
changeset 370423 4135907f1f9dd58f0bbe5498470986cffc8c9060
parent 370422 4a20b3337a36b83a44c904d9ee0841f96263ba14
child 521737 f821a3b1795d70d3ed480514f7df57165a5d20f3
push id19047
push userbmo:ato@mozilla.com
push dateTue, 24 May 2016 16:36:32 +0000
reviewerswhimboo
bugs1275311
milestone49.0a1
Bug 1275311 - Get property when in content in security notification UI test; r?whimboo MozReview-Commit-ID: 1mIed8b8uXY
testing/firefox-ui/tests/functional/security/test_security_notification.py
--- a/testing/firefox-ui/tests/functional/security/test_security_notification.py
+++ b/testing/firefox-ui/tests/functional/security/test_security_notification.py
@@ -31,24 +31,24 @@ class TestSecurityNotification(FirefoxTe
             # Go to a site that has an invalid (expired) cert
             self.assertRaises(MarionetteException, self.marionette.navigate, self.urls[0])
 
             # Wait for the DOM to receive events
             time.sleep(1)
 
             # Verify the text in Technical Content contains the page with invalid cert
             text = self.marionette.find_element(By.ID, 'badCertTechnicalInfo')
-            self.assertIn(self.urls[0][8:], text.get_attribute('textContent'))
+            self.assertIn(self.urls[0][8:], text.get_property('textContent'))
 
             # Verify the "Go Back" and "Advanced" buttons appear
             self.assertIsNotNone(self.marionette.find_element(By.ID, 'returnButton'))
             self.assertIsNotNone(self.marionette.find_element(By.ID, 'advancedButton'))
 
             # Verify the error code is correct
-            self.assertIn('SEC_ERROR_EXPIRED_CERTIFICATE', text.get_attribute('textContent'))
+            self.assertIn('SEC_ERROR_EXPIRED_CERTIFICATE', text.get_property('textContent'))
 
     def test_secure_website(self):
         with self.marionette.using_context('content'):
             self.marionette.navigate(self.urls[1])
 
         Wait(self.marionette).until(lambda _: (
             self.identity_box.get_attribute('className') == 'verifiedIdentity')
         )