Commit 373e2a27 authored by Jérome Perrin's avatar Jérome Perrin

prevent error when running with different browser than firefox

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@37199 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent afa4c771
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>_EtagSupport__etag</string> </key> <key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts33693326.63</string> </value> <value> <string>ts79620529.1</string> </value>
</item> </item>
<item> <item>
<key> <string>__name__</string> </key> <key> <string>__name__</string> </key>
...@@ -76,7 +76,10 @@ Selenium.prototype.assertPortalStatusMessage = function(text) {\n ...@@ -76,7 +76,10 @@ Selenium.prototype.assertPortalStatusMessage = function(text) {\n
\n \n
\n \n
Selenium.prototype.doType = function(locator, newText) {\n Selenium.prototype.doType = function(locator, newText) {\n
if (typeof(netscape) != "undefined") {\n
// on firefox, we enable privilege to upload file in javascript.\n
netscape.security.PrivilegeManager.enablePrivilege("UniversalFileRead");\n netscape.security.PrivilegeManager.enablePrivilege("UniversalFileRead");\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
};\n };\n
...@@ -98,7 +101,7 @@ Selenium.prototype.getAbsoluteLocation = function() {\n ...@@ -98,7 +101,7 @@ Selenium.prototype.getAbsoluteLocation = function() {\n
</item> </item>
<item> <item>
<key> <string>size</string> </key> <key> <string>size</string> </key>
<value> <int>2156</int> </value> <value> <int>2278</int> </value>
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
......
32 33
\ 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