Index: functional/about_plugins_ui.py |
=================================================================== |
--- functional/about_plugins_ui.py (revision 134125) |
+++ functional/about_plugins_ui.py (working copy) |
@@ -130,7 +130,7 @@ |
# Verify internal flash is disabled. |
pyauto_utils.WaitForDomElement(self, internal_flash_elem, |
- './/ancestor::*[@class="plugin-file-disabled"]') |
+ './/ancestor::*[@class="plugin-disabled"]') |
self.assertTrue(self.WaitUntil(lambda: not |
self._IsEnabled('Shockwave Flash'))) |
@@ -140,7 +140,7 @@ |
internal_flash_enable_link.click() |
self.assertTrue(self.WaitUntil(lambda: len( |
internal_flash_elem.find_elements_by_xpath( |
- './/ancestor::*[@class="plugin-file-enabled"]')) == 1), |
+ './/ancestor::*[@class="plugin-enabled"]')) >= 1), |
Nirnimesh
2012/04/26 18:45:05
are there many of these 'plugin-enabled' elements?
vivianz
2012/04/26 18:50:58
there used to be 2 set plugin-enabled and plugin-f
Nirnimesh
2012/04/26 19:06:14
I understand what you're trying to do, but I don't
dyu1
2012/04/26 19:14:52
Do they both need to be enabled? Are the plugins e
vivianz
2012/04/26 22:08:58
yes, before the click on line 140, the class name
vivianz
2012/04/26 22:08:58
because now after developer make plugin-file-[some
Nirnimesh
2012/04/26 22:19:58
then why not match to 2? Why >= 1?
vivianz
2012/04/26 22:30:51
I could, I make it >=1 in case dev make another on
Nirnimesh
2012/04/26 22:33:39
Before the click happens, what's the count? 1?
If
vivianz
2012/04/26 22:42:56
before the click , the class name is plugin-disabl
Nirnimesh
2012/04/26 23:00:07
I think you should do a strict match. ie == 1 here
vivianz
2012/04/26 23:15:04
I can make it ==2, but I just don't see the point
Nirnimesh
2012/04/26 23:21:33
I want to ensure that reality is coded in here.
Op
vivianz
2012/04/26 23:37:23
got it, I will change it to >0 tomorrow, that make
vivianz
2012/04/27 18:00:32
Done.
|
msg='Failed to enable internal Flash plugin') |
self.assertTrue(self.WaitUntil(lambda: |
self._IsEnabled('Shockwave Flash'))) |