I don't kow why the script toolbar shows functions well formatted and others unformatted (inlined). This means I can't debug the unformatted functions.
For example, in the following extract of the same JS file, the Selenium constructor appears well formatted, but the decorateFunctionWithTimeout function is inlined.
Anyone knows the reason?
function Selenium(browserbot) { this.browserbot = browserbot; this.optionLocatorFactory = new OptionLocatorFactory; this.page = function () {return browserbot;}; this.defaultTimeout = Selenium.DEFAULT_TIMEOUT; this.mouseSpeed = Selenium.DEFAULT_MOUSE_SPEED; if (bot && bot.locators && bot.locators.add) { bot.locators.add("xpath", {single: function (target, opt_root) {return browserbot.locateElementByXPath(target, opt_root);}, many: function (target, opt_root) {return browserbot.locateElementsByXPath(target, opt_root);}}); bot.locators.add("css", {single: function (target, opt_root) {return browserbot.locateElementByCss(target, opt_root);}, many: function (target, opt_root) {return eval_css(target, opt_root);}});
> I don't kow why the script toolbar shows functions well formatted and > others unformatted (inlined). This means I can't debug the unformatted > functions.
> For example, in the following extract of the same JS file, the > Selenium constructor appears well formatted, but the > decorateFunctionWithTimeout function is inlined.
> Anyone knows the reason?
> function Selenium(browserbot) { > this.browserbot = browserbot; > this.optionLocatorFactory = new OptionLocatorFactory; > this.page = function () {return browserbot;}; > this.defaultTimeout = Selenium.DEFAULT_TIMEOUT; > this.mouseSpeed = Selenium.DEFAULT_MOUSE_SPEED; > if (bot && bot.locators && bot.locators.add) { > bot.locators.add("xpath", {single: function (target, opt_root) {return > browserbot.locateElementByXPath(target, opt_root);}, many: function > (target, opt_root) {return browserbot.locateElementsByXPath(target, > opt_root);}}); > bot.locators.add("css", {single: function (target, opt_root) {return > browserbot.locateElementByCss(target, opt_root);}, many: function > (target, opt_root) {return eval_css(target, opt_root);}});} > }
> I don't kow why the script toolbar shows functions well formatted and > others unformatted (inlined). This means I can't debug the unformatted > functions.
> For example, in the following extract of the same JS file, the > Selenium constructor appears well formatted, but the > decorateFunctionWithTimeout function is inlined.
> Anyone knows the reason?
> function Selenium(browserbot) { > this.browserbot = browserbot; > this.optionLocatorFactory = new OptionLocatorFactory; > this.page = function () {return browserbot;}; > this.defaultTimeout = Selenium.DEFAULT_TIMEOUT; > this.mouseSpeed = Selenium.DEFAULT_MOUSE_SPEED; > if (bot && bot.locators && bot.locators.add) { > bot.locators.add("xpath", {single: function (target, opt_root) {return > browserbot.locateElementByXPath(target, opt_root);}, many: function > (target, opt_root) {return browserbot.locateElementsByXPath(target, > opt_root);}}); > bot.locators.add("css", {single: function (target, opt_root) {return > browserbot.locateElementByCss(target, opt_root);}, many: function > (target, opt_root) {return eval_css(target, opt_root);}});} > }