I am working on merging some engine prototype code into trunk now, which includes tellurium apis implemented using jQuery. After that, you can try the jQuery version of isVisible() to see if it works for you if you don't have a workaround for this problem.
Stay tuned. Thanks, Jian On Wed, Nov 25, 2009 at 7:28 PM, Jian Fang <[email protected]> wrote: > The code is in Selenium core selenium-api.js > > Selenium.prototype.findEffectiveStyle = function(element) { > if (element.style == undefined) { > return undefined; // not a styled element > } > var window = this.browserbot.getCurrentWindow(); > if (window.getComputedStyle) { > // DOM-Level-2-CSS > return window.getComputedStyle(element, null); > } > if (element.currentStyle) { > // non-standard IE alternative > return element.currentStyle; > // TODO: this won't really work in a general sense, as > // currentStyle is not identical to getComputedStyle() > // ... but it's good enough for "visibility" > } > > if (window.document.defaultView && > window.document.defaultView.getComputedStyle) { > return window.document.defaultView.getComputedStyle(element, null); > } > > > throw new SeleniumError("cannot determine effective stylesheet in this > browser"); > }; > > I would suggestion you to debug this piece of code to see what was wrong. > > Please see here on how to debug selenium core: > > > http://code.google.com/p/aost/wiki/UserGuide070AppendixB#How_to_Debug_Selenium_Core > > Please let us know what you find. > > Thanks, > > Jian > > > On Wed, Nov 25, 2009 at 1:23 PM, d32 <[email protected]> wrote: > >> Hi, >> >> While executing a test, when isVisible method is invoked selenium >> throws following exception: >> >> -------------------------------- >> Exception Start >> -------------------------------- >> com.thoughtworks.selenium.SeleniumException: ERROR: cannot determine >> effective stylesheet in this browser >> >> com.thoughtworks.selenium.HttpCommandProcessor.throwAssertionFailureExceptionOrError >> (HttpCommandProcessor.java:97) >> com.thoughtworks.selenium.HttpCommandProcessor.doCommand >> (HttpCommandProcessor.java:91) >> com.thoughtworks.selenium.HttpCommandProcessor.getString >> (HttpCommandProcessor.java:262) >> com.thoughtworks.selenium.HttpCommandProcessor.getBoolean >> (HttpCommandProcessor.java:335) >> com.thoughtworks.selenium.DefaultSelenium.isVisible >> (DefaultSelenium.java:499) >> ........ >> org.tellurium.dsl.BaseDslContext$_isVisible_closure34.doCall >> (BaseDslContext.groovy:487) >> ......... >> -------------------------------- >> Exception END >> -------------------------------- >> >> This is Intermittent exception. >> >> Please advice/suggest solution for this problem. >> >> Thanks >> Prashant >> >> -- >> >> You received this message because you are subscribed to the Google Groups >> "tellurium-users" group. >> To post to this group, send email to [email protected]. >> To unsubscribe from this group, send email to >> [email protected]<tellurium-users%[email protected]> >> . >> For more options, visit this group at >> http://groups.google.com/group/tellurium-users?hl=en. >> >> >> > -- You received this message because you are subscribed to the Google Groups "tellurium-users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/tellurium-users?hl=en.
