UI-Element Release 0.6

It’s with great pleasure that I announce version 0.6 of UI-Element. This iteration modifies the map file format similar to as I had envisioned in a previous blog entry. (Sorry if this breaks your old map - the change is an improvement, I promise!) It makes possible the creation of testcases for XPath generation functions, specifying XPaths as simple strings, defining URL prefixes for “Pagesets” (which are groups of pages containing the same UI elements), and more intuitive use of the this keyword in the getXPath() and getDefaultValues() methods. Lastly and perhaps most importantly, it includes documentation accessible from the Help menu in the IDE. Sounds funny, but I’m quite proud of this.

Get it while it’s hot! Download links:

selenium-ide-0.8.7-ui-0.6.xpi
selenium-ide-0.8.7-ui-0.6-test.xpi

4 Responses to “UI-Element Release 0.6”

  1. Serik Says:

    Hello!
    Could you please give me some advice, how to get such feature “takeScreenshot” as it is in your “UI-Element” but in Selenium-RC server?
    Now there is “captureScreenshot” function but it capture entire screen and if window with tested webApplication is in background, it doesn’t help.
    But your feature gives screen as it is in Firefox and it’s most wishful feature!
    I think, developing such feature by myself will take very much time, and I’d like to reduce this time as much as it’s possible.
    Thanks!

  2. Administrator Says:

    Hi Serik!

    In UI-Element, takeScreenshot is implemented as a bona-fide Selenium command. This means that you need only include the javascript using the -userExtensions switch to the Selenium server in order to utilize it. See the section “Driven: Graduating the IDE” in the following blog entry for an example of doing this:

    http://ttwhy.org/home/blog/2007/05/12/selenium-ui-element-locator/

    Please note that you’ll have to use the *chrome browser for the screenshot facility to work. In the future, I plan on trying to get this working for IE, but this probably won’t happen for a while until I get some outside help. :)

  3. Administrator Says:

    I should add a note that, while including the javascript with -userExtensions exposes the command through the Selenium server, client drivers will not necessarily make this access obvious unless you modify them yourself. For example, the Java client driver’s DefaultSelenium class won’t automatically get a takeScreenshot(filename) method. It would not be difficult to add yourself, however. You could also invoke the command using HttpCommandProcessor’s doCommand().

    The same is true of the Perl client driver, which I use a lot in testing. A take_screenshot_ok() method isn’t going to automatically materialize; however, you can always use do_command().

  4. NEIL L PYNE Says:

    HAW-BIN CHAI,
    I FOUND YOUR BOOKS FROM 2005 TRIP IN ABANDONED LUGGAGE, AT LAX AIRPORT WITH MANY PICTURES! IF INTERESTED PLEASE CONTACT ME FOR THERE EARLY RETURN.
    NEIL L PYNE
    NLPYNE@MMM.COM
    1-310-339-3654
    LAX KIWANIS CLUB

Leave a Reply


Bad Behavior has blocked 824 access attempts in the last 7 days.