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.
HOW TO ACCESS THESE PROPERTIES??!?
NOTE: I copy and pasted this from an old thread that never received a response. How do you do this? This is vital for being able to use sahi beyond the *sort of* limited API that's provided.
In sahi Controller i am getting the list of properties as pasted below by clicking List Properties button (in sahi mode), in the same way how can i get list of properties like getting id, getting title, getting tagname etc., means are there any methods like getId, getAttribute,getTagName etc which are in selenium.
scrollWidth=271;
clientHeight=418;
clientWidth=271;
baseURI=http://www.satyapaul.com/satyapaul/shop/Category4__10051_SC+PrintnEmb__21952_21952___21955;
style={{[object CSSStyleDeclaration]}};
style=[object CSSStyleDeclaration];
contentEditable=inherit;
offsetParent={{[object HTMLTableCellElement]}};
offsetParent=[object HTMLTableCellElement];
offsetTop=1;
offsetHeight=418;
offsetWidth=271;
complete=true;
src=http://www.satyapaul.com/wcsstore/SatyaPaul/images/catalog/Take_a_walk_on_the_wild_side/RD5500/RD5500_02/270x405/satya-paul_take-a-walk-collection-print-saree_RD5500_02_F_270x405.jpg;
height=405;
width=270;
id=prod_img_56401;
title=RD5500,A beautiful bold printed saree with scattered leopard pattern worn with a brown blouse matching the pallu.,7995;
tagName=IMG;
nextSibling={{[object Text]}};
nextSibling=[object Text];
childNodes={{[object NodeList]}};
childNodes=[object NodeList];
nodeName=IMG;
namespaceURI=http://www.w3.org/1999/xhtml;
previousSibling={{[object Text]}};
previousSibling=[object Text];
nodeType=1;
localName=img;
ownerDocument={{[object HTMLDocument]}};
ownerDocument=[object HTMLDocument];
parentNode=http://www.satyapaul.com/satyapaul/shop/Product2__10051_RD5500__SC+PrintnEmb_21952_21952__56401_21955;
attributes={{[object NamedNodeMap]}};
attributes=[object NamedNodeMap];
alt=RD5500 - 7995;
ELEMENT_NODE=1;
ATTRIBUTE_NODE=2;
TEXT_NODE=3;
CDATA_SECTION_NODE=4;
ENTITY_REFERENCE_NODE=5;
ENTITY_NODE=6;
PROCESSING_INSTRUCTION_NODE=7;
COMMENT_NODE=8;
DOCUMENT_NODE=9;
DOCUMENT_TYPE_NODE=10;
DOCUMENT_FRAGMENT_NODE=11;
NOTATION_NODE=12;
border=0;
hspace=-1;
vspace=-1;
naturalHeight=405;
naturalWidth=270;
x=418;
y=129;
tabIndex=-1;
draggable=true;
DOCUMENT_POSITION_DISCONNECTED=1;
DOCUMENT_POSITION_PRECEDING=2;
DOCUMENT_POSITION_FOLLOWING=4;
DOCUMENT_POSITION_CONTAINS=8;
DOCUMENT_POSITION_CONTAINED_BY=16;
DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC=32;
scrollHeight=418;
nextElementSibling={{[object HTMLInputElement]}};
nextElementSibling=[object HTMLInputElement];
children={{[object HTMLCollection]}};
children=[object HTMLCollection];
classList={{}};
classList=;
In sahi Controller i am getting the list of properties as pasted below by clicking List Properties button (in sahi mode), in the same way how can i get list of properties like getting id, getting title, getting tagname etc., means are there any methods like getId, getAttribute,getTagName etc which are in selenium.
scrollWidth=271;
clientHeight=418;
clientWidth=271;
baseURI=http://www.satyapaul.com/satyapaul/shop/Category4__10051_SC+PrintnEmb__21952_21952___21955;
style={{[object CSSStyleDeclaration]}};
style=[object CSSStyleDeclaration];
contentEditable=inherit;
offsetParent={{[object HTMLTableCellElement]}};
offsetParent=[object HTMLTableCellElement];
offsetTop=1;
offsetHeight=418;
offsetWidth=271;
complete=true;
src=http://www.satyapaul.com/wcsstore/SatyaPaul/images/catalog/Take_a_walk_on_the_wild_side/RD5500/RD5500_02/270x405/satya-paul_take-a-walk-collection-print-saree_RD5500_02_F_270x405.jpg;
height=405;
width=270;
id=prod_img_56401;
title=RD5500,A beautiful bold printed saree with scattered leopard pattern worn with a brown blouse matching the pallu.,7995;
tagName=IMG;
nextSibling={{[object Text]}};
nextSibling=[object Text];
childNodes={{[object NodeList]}};
childNodes=[object NodeList];
nodeName=IMG;
namespaceURI=http://www.w3.org/1999/xhtml;
previousSibling={{[object Text]}};
previousSibling=[object Text];
nodeType=1;
localName=img;
ownerDocument={{[object HTMLDocument]}};
ownerDocument=[object HTMLDocument];
parentNode=http://www.satyapaul.com/satyapaul/shop/Product2__10051_RD5500__SC+PrintnEmb_21952_21952__56401_21955;
attributes={{[object NamedNodeMap]}};
attributes=[object NamedNodeMap];
alt=RD5500 - 7995;
ELEMENT_NODE=1;
ATTRIBUTE_NODE=2;
TEXT_NODE=3;
CDATA_SECTION_NODE=4;
ENTITY_REFERENCE_NODE=5;
ENTITY_NODE=6;
PROCESSING_INSTRUCTION_NODE=7;
COMMENT_NODE=8;
DOCUMENT_NODE=9;
DOCUMENT_TYPE_NODE=10;
DOCUMENT_FRAGMENT_NODE=11;
NOTATION_NODE=12;
border=0;
hspace=-1;
vspace=-1;
naturalHeight=405;
naturalWidth=270;
x=418;
y=129;
tabIndex=-1;
draggable=true;
DOCUMENT_POSITION_DISCONNECTED=1;
DOCUMENT_POSITION_PRECEDING=2;
DOCUMENT_POSITION_FOLLOWING=4;
DOCUMENT_POSITION_CONTAINS=8;
DOCUMENT_POSITION_CONTAINED_BY=16;
DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC=32;
scrollHeight=418;
nextElementSibling={{[object HTMLInputElement]}};
nextElementSibling=[object HTMLInputElement];
children={{[object HTMLCollection]}};
children=[object HTMLCollection];
classList={{}};
classList=;
Answers
you can for example use this
_getAttribute(_image("_sahi_ignore_2"),"width")
on the http://sahi.example.com/_s_/dyn/Driver_initialized page