18 January 2026:
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
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.
Custom attributes on Sahi OS
Hello,
I am having problem to have custom attributes recognized by sahi OS ( It works fine with Sahi Pro Trial ! )
However, It works well with known attributes such as title, lang.... but does not work for custom attribute such as 'widgetID'
I have followed the recommendations from sahi pages located here:
http://sahi.co.in/w/tweaking-sahi-apis
concat.js
this.addAD({tag: "INPUT", type: "button", event:"click", name: "_button", attributes: ["widgetID", "value", "name", "id", "index", "title", "lang","className"], action: "_click", value: "value"});
my html:
3 scenarios:
<input type="button" title="save" value="saaaave" onclick="alert('clicked')">
=> _button("save")
==> SUCCESS !
<input type="button" lang="save" value="saaaave" onclick="alert('clicked')">
=> _button("save")
==> SUCCESS !
<input type="button" widgetID="save" value="saaaave" onclick="alert('clicked')">
=> _button("save")
==> FAILED!
Is it a feature only available on Sahi Pro or a bug? If it is the case, please add a comment in the documentation.
Many thanks
Florent
I am having problem to have custom attributes recognized by sahi OS ( It works fine with Sahi Pro Trial ! )
However, It works well with known attributes such as title, lang.... but does not work for custom attribute such as 'widgetID'
I have followed the recommendations from sahi pages located here:
http://sahi.co.in/w/tweaking-sahi-apis
concat.js
this.addAD({tag: "INPUT", type: "button", event:"click", name: "_button", attributes: ["widgetID", "value", "name", "id", "index", "title", "lang","className"], action: "_click", value: "value"});
my html:
3 scenarios:
<input type="button" title="save" value="saaaave" onclick="alert('clicked')">
=> _button("save")
==> SUCCESS !
<input type="button" lang="save" value="saaaave" onclick="alert('clicked')">
=> _button("save")
==> SUCCESS !
<input type="button" widgetID="save" value="saaaave" onclick="alert('clicked')">
=> _button("save")
==> FAILED!
Is it a feature only available on Sahi Pro or a bug? If it is the case, please add a comment in the documentation.
Many thanks
Florent
Answers
This is available in Sahi Pro but not in Sahi OS yet.
Although, we will let you know how to manage this in Sahi OS after some consultation.
Regards.