Bug 1275311 - Get property when in content in security notification UI test; r=whimboo
authorAndreas Tolfsen <ato@mozilla.com>
Tue, 24 May 2016 17:28:38 +0100
changeset 298761 16ee80b5d72716421a9aa088c942efee19b0109e
parent 298760 ff8388f0333fb73e03f5597f3c57e67e55f8e5cf
child 298762 727ca0c6f57dbf92200b1c7e30bc596b598a9e25
push id77298
push useratolfsen@mozilla.com
push dateTue, 24 May 2016 18:22:33 +0000
treeherdermozilla-inbound@16ee80b5d727 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerswhimboo
bugs1275311
milestone49.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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')
         )