Revert "Comment two functions in Selenium user-extensions that require user interaction."

This reverts commit 9c919c4a.

Proper prefs.js Firefox config file can solve this problem.
parent 9c919c4a
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>_EtagSupport__etag</string> </key> <key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts27332555.94</string> </value> <value> <string>ts20417149.43</string> </value>
</item> </item>
<item> <item>
<key> <string>__name__</string> </key> <key> <string>__name__</string> </key>
...@@ -75,8 +75,7 @@ Selenium.prototype.assertPortalStatusMessage = function(text) {\n ...@@ -75,8 +75,7 @@ Selenium.prototype.assertPortalStatusMessage = function(text) {\n
Selenium.prototype.doType = function(locator, newText) {\n Selenium.prototype.doType = function(locator, newText) {\n
if (typeof(netscape) != "undefined") {\n if (typeof(netscape) != "undefined") {\n
// on firefox, we enable privilege to upload file in javascript.\n // on firefox, we enable privilege to upload file in javascript.\n
// XXX-Cedric : this needs user interaction, thus making it unusable.\n netscape.security.PrivilegeManager.enablePrivilege("UniversalFileRead");\n
//netscape.security.PrivilegeManager.enablePrivilege("UniversalFileRead");\n
}\n }\n
var element = this.page().findElement(locator);\n var element = this.page().findElement(locator);\n
this.page().replaceText(element, newText);\n this.page().replaceText(element, newText);\n
...@@ -92,11 +91,10 @@ Selenium.prototype.getAbsoluteLocation = function() {\n ...@@ -92,11 +91,10 @@ Selenium.prototype.getAbsoluteLocation = function() {\n
\n \n
Selenium.prototype.doPhantomRender = function(filename) {\n Selenium.prototype.doPhantomRender = function(filename) {\n
if (window.page && window.page.render) {\n if (window.page && window.page.render) {\n
// XXX-Cedric : this needs user interaction, thus making it unusable.\n page.render(filename);\n
// Solution : create Firefox extension enabling universal* rights\n
//page.render(filename);\n
}\n }\n
}; };\n
]]></string> </value> ]]></string> </value>
</item> </item>
...@@ -106,7 +104,7 @@ Selenium.prototype.doPhantomRender = function(filename) {\n ...@@ -106,7 +104,7 @@ Selenium.prototype.doPhantomRender = function(filename) {\n
</item> </item>
<item> <item>
<key> <string>size</string> </key> <key> <string>size</string> </key>
<value> <int>2653</int> </value> <value> <int>2422</int> </value>
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
......
49 48
\ No newline at end of file \ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment