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 @@
<dictionary>
<item>
<key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts27332555.94</string> </value>
<value> <string>ts20417149.43</string> </value>
</item>
<item>
<key> <string>__name__</string> </key>
......@@ -75,8 +75,7 @@ Selenium.prototype.assertPortalStatusMessage = function(text) {\n
Selenium.prototype.doType = function(locator, newText) {\n
if (typeof(netscape) != "undefined") {\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
var element = this.page().findElement(locator);\n
this.page().replaceText(element, newText);\n
......@@ -92,11 +91,10 @@ Selenium.prototype.getAbsoluteLocation = function() {\n
\n
Selenium.prototype.doPhantomRender = function(filename) {\n
if (window.page && window.page.render) {\n
// XXX-Cedric : this needs user interaction, thus making it unusable.\n
// Solution : create Firefox extension enabling universal* rights\n
//page.render(filename);\n
page.render(filename);\n
}\n
};
};\n
]]></string> </value>
</item>
......@@ -106,7 +104,7 @@ Selenium.prototype.doPhantomRender = function(filename) {\n
</item>
<item>
<key> <string>size</string> </key>
<value> <int>2653</int> </value>
<value> <int>2422</int> </value>
</item>
<item>
<key> <string>title</string> </key>
......
49
\ No newline at end of file
48
\ 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