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.

how to get element using several custom attributes while title attribute is null?

edited December 2012 in Sahi - Open Source
I want to get an element in Sahi script using multiple custom attributes of my choice. It is a having different attributes which are dynamically generated. The title attribute is blank that is "". example of the element definition is as follow:

Here the row id is dynamically generated. I need to click on this element once this element is clicked then a textbox is generated and we need to fill value in it - value is text format. I want to use rmbnum and position attributes to get this element.

I have searched the sahi forum but was not able to find it.

regards,
rahoolm

Answers

  • edited December 2012
    Hi iwx1,

    You can use like (rmbnum="0,1", position="4")
    Good Luck!!!

  • Can you provide me a complete example?
    like
    <code> _click(_cell("My Cell")); </code>
    is it
    <code>_click(_cell(rmbnum="0,1" , position="4")); </code>
  • _click(_cell(rmbnum="0,1" , position="4"));

    Yes, did you tried this ?
  • Hello Umashankar,

    I was not able to do that using the method you have mentioned.
    Could you please suggest any other method?

    thanks and regards,
    rahoolm
  • Answer:: _link({className:"low",sahiText:"/Link.*/"})
    Now available in document and works fine.
  • Hey guys, there is no way to accept answer which you have posted yourself. It is available on SO :)
    Please add the provision. Thanks!
  • Hey guys, there is no way to accept answer which you have posted yourself. It is available on SO :)
    Please add the provision. Thanks!
Sign In or Register to comment.