diff --git a/CHANGELOG b/CHANGELOG index e5e71a7..407b883 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -2,7 +2,7 @@ * Fix issues with Selector an+b logic, :not support, attribute selector double quotes, plus performance improvements. Closes #7873, #7901. [Andrew Dupont] -* Fix an issue with Element.getDimensions with some element types on non IE-browsers. Closes #7683. [Andrew Dupont] +* Fix an issue with Element.getDimensions with some element types on non-IE browsers. Closes #7683. [Andrew Dupont] * Fix Form.disable to work again on non-form elements. Closes #6887. [Mislav Marohnić] diff --git a/test/lib/jstest.rb b/test/lib/jstest.rb index 736c82e..4ed06eb 100644 --- a/test/lib/jstest.rb +++ b/test/lib/jstest.rb @@ -32,7 +32,7 @@ class Browser end class FirefoxBrowser < Browser - def initialize(path='c:\Program Files\Mozilla Firefox\firefox.exe') + def initialize(path=File.join(ENV['ProgramFiles'] || 'c:\Program Files', '\Mozilla Firefox\firefox.exe')) @path = path end @@ -70,7 +70,7 @@ class SafariBrowser < Browser end class IEBrowser < Browser - def initialize(path='C:\Program Files\Internet Explorer\IEXPLORE.EXE') + def initialize(path=File.join(ENV['ProgramFiles'] || 'c:\Program Files', '\Internet Explorer\IEXPLORE.EXE')) @path = path end