Bug 1275311 - Get property when in content in security notification UI test; r=whimboo, a=test-only
authorAndreas Tolfsen <ato@mozilla.com>
Tue, 24 May 2016 17:28:38 +0100
changeset 333319 3e95203b4cab68e55bc906c60f00f39d883d813d
parent 333318 f23397230676818b32efb7baaeac197eac9a283a
child 333320 773192ea404cb80f87268e17ee8786999cf717e6
push id6060
push usercbook@mozilla.com
push dateMon, 13 Jun 2016 21:47:00 +0000
treeherdermozilla-beta@3e95203b4cab [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerswhimboo, test-only
bugs1275311
milestone48.0
Bug 1275311 - Get property when in content in security notification UI test; r=whimboo, a=test-only 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')
         )