18 January 2026:


This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.



Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.

SmartGWT ids

pkelleypkelley Members
edited November -1 in Sahi - Open Source
I am trying to access elements on the page by their IDs set in SmartGWT (e.g. in SmartGWT you call myButton.setID("createProductButton") ). It seems like Sahi does not find anything with this id on the page.

It looks like there was some work in one of the more recent versions of SmartGWT to provide an additional file to allow finding these ids with Selinium.

Is there a way to do this in Sahi also?

Thank you in advance for any help,
Patrick

Comments

  • Hi pkelley,

    Can you post the application URL or point us to an example so that we can help you to solve your issue?

    Regards
    Sumitra
  • I cannot send out a link for what I am working on specificially, but I think it should be true of any SmartGWT application you test on.

    What about the SmartGWT showcase. Maybe you could try testing that and see if you see IDs for the components where they are set. (it won't let me post a link to it).

    I found one example in a quick browse that did setID on an Image. It is under "Basics" and is called "Focus & Tabbing". The two images have their id set (you can click View Source to see this call and the IDs used).

    Thanks for taking a look at this!
    Patrick
  • I used the example I pointed out above and verified that the images have ids set in the code (see View Source), but they do not show up as visible in Sahi.

    This would be a HUGE time savings plus a big step towards less fragile code for our company if we could get to these ids. Any ideas?

    Thank you in advance,
    Patrick
Sign In or Register to comment.