Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Selenium integration not quite working

    When using the selenium SmatGWT libraries (user-extensions.js) that come with my paid SmartGWT 3.1 PowerEdition, some of my clicks are properly recorded, but many others are not. Instead, when I click on various different buttons, it records the exact same entry, even though the buttons are different. See below:

    Code:
    waitForElementClickable
    scLocator=//TabSet[ID="isc_TabSet_0"]/tab[ID=isc_TabMAPS_0||title=Workflows||index=1]/
    
    click
    scLocator=//TabSet[ID="isc_TabSet_0"]/tab[ID=isc_TabMAPS_0||title=Workflows||index=1]/
    
    waitForElementClickable
    scLocator=//TabSet[ID="isc_TabSet_0"]/tab[ID=isc_TabMAPS_0||title=Workflows||index=1]/
    
    click
    scLocator=//TabSet[ID="isc_TabSet_0"]/tab[ID=isc_TabMAPS_0||title=Workflows||index=1]/
    
    waitForElementClickable
    scLocator=//TabSet[ID="isc_TabSet_0"]/tab[ID=isc_TabMAPS_0||title=Workflows||index=1]/
    
    click
    scLocator=//TabSet[ID="isc_TabSet_0"]/tab[ID=isc_TabMAPS_0||title=Workflows||index=1]/

    However, if I download teh latest built of SmartGWT 4.1p and use the user-extensions.js libraries that come with it, I don't see that problem. That is, it "seems" to create different entries in the Selenium IDE for the different buttons I'm clicking. However, it creates a different problem that I didn't get with th eolder selenium user-extensions.js library. This new problem is that it doesn't see to "find" and "wait" correctly for a button that appears right after I log into my application. The Selenium IDE code that fails is as follows:

    Code:
    waitForElementClickable
    scLocator=//Button[ID="isc_Button_1"]/
    
    click
    scLocator=//Button[ID="isc_Button_1"]/
    .

    I get a timeout. I checked the javascript, and not only does that button exist with id of "isc_Button_1", but even the OLD selenium libraries produced the same code:

    Code:
    waitForElementClickable
    scLocator=//Button[ID="isc_Button_1"]/
    
    click
    scLocator=//Button[ID="isc_Button_1"]/
    and it did work using the old libraries.

    So, the old libraries gets me to a certain point, and then seems to not correctly differentiate between the different buttons that I click. The new libraries seem to distinguish between the different buttons, but it doesn't correct handle "waiting" on one of the first buttons that appears in the app. NOTE: Even though I experimented with the latest selenium libraries from SmartGWt 4.1p, the actual app was still built with the OLD (purchased/stable) SmartGWT 3.1 (full details below):

    Here's my standard additional background info:
    ======================
    SmartGWT (not smartclient) Version: SmartClient Version: v8.3p_2012-11-26/PowerEdition Deployment (built 2012-11-26)
    ...
    Browser: Firefox 29 on Mac 10.9.2
    GWT SDK: 2.5.0rc2
    Sun JDK 1.6.0_13
    J2EE: Tomcat 6
    OS: Centos 6.x

    #2
    You're using a very old version of SGWT 3.1p. FF20 introduced problems that we had to fix circa 9-1-2013 so you'll have to download a newer version of SGWT 3.1p unless you want to use FF19 or older.

    You can't use newer user extensions (as from SGWT 4.1p) with SGWT 3.1p as they are designed to call APIs in the corresponding code stream, and the SGWT 4.1p user extensions, in particular, would be calling APIs that don't exist in SGWT 3.1p.

    Comment

    Working...
    X