Bug 1275311 - Get property when in content in security notification UI test; r=whimboo

MozReview-Commit-ID: 1mIed8b8uXY

--HG--
extra : rebase_source : e21b4565c5b146faa4468d4569dabe34e182ae8f
This commit is contained in:
Andreas Tolfsen 2016-05-24 17:28:38 +01:00
Родитель e33c9179cd
Коммит 01d029f0e7
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -36,14 +36,14 @@ class TestSecurityNotification(FirefoxTestCase):
# 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'):