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.

adding custom attributes in sahi opensource?

SaiPradeepSaiPradeep Members
edited August 2013 in Sahi - Open Source
hi all,

does adding custom attributes support sahi open source?
on going through this discussion, it leads me to how we can tweak Sahi APIS. It is clearly mentioned that
it is available in sahi pro but not in sahi os.
I would like to check whether adding custom attributes in the sahi concat.js file and including in the normal functions can drive sahi look for
the element with the custom attributes inside the tag.
Kindly please provide me with the more information on this aspect
http://tytosoft.www51.a2hosting.com/forums/discussion/comment/17754#Comment_17754.

Thanks in advance,
Sai Pradeep.

Answers

  • can anyone help me on this topic?
  • hi Pratyush,
    I just tried with the steps mentioned in tweaking sahi APIS
    this.addAD({tag: "INPUT", type: "text", event:"change", name: "_hiddencontrolid", attributes: ["hiddencontrolid","name", "id", "index", "className"], action: "_setValue", value: "value"});

    when I hover over the element it identifies like _hiddencontrolid("id") butnot with the custom attribute:
    like _hiddencontrolid("hiddencontrolid").

    Kindly please help me out how to achieve this in Sahi Open source.

    Thanks,
    Sai Pradeep.
  • hi Pratyush,
    I just tried with the steps mentioned in tweaking sahi APIS
    this.addAD({tag: "INPUT", type: "text", event:"change", name: "_hiddencontrolid", attributes: ["hiddencontrolid","name", "id", "index", "className"], action: "_setValue", value: "value"});

    when I hover over the element it identifies like _hiddencontrolid("id") butnot with the custom attribute:
    like _hiddencontrolid("hiddencontrolid").

    Kindly please help me out how to achieve this in Sahi Open source.

    Thanks,
    Sai Pradeep.
Sign In or Register to comment.