Please note that Sahi's development and support teams do not actively monitor this. This is more a community forum. If you are a Sahi Pro user looking for commercial support, please email support @ sahipro.com with your query.

Empty td element makes the sahi return wrong cell by index

boris_toninskiboris_toninski Members
edited July 2014 in Sahi - Open Source
I'm using the Java API, my statement is translated to following Javascript:
_getAttribute(_image("[0]", _in(_cell("[0]", _in(_parentRow(_hidden({value:"16600fe0-377a-4341-8839-066ab2fcc62a"})))))), "src")

The ... _cell("[0]" ... part is not working properly when there are empty td elements in the row. In this case it always returns the empty cell although it is with index 3. In case there are no empty td it is working with no problems.

I can also include the HTML but it is too big.

Because of user requirements I'm using IE 7.

My environment is:
Sahi

Version : V4.4
Build : 2013-04-29 (change log)
Check for updates

Browser

UserAgent : Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.30729; .NET CLR 3.5.30729)
Name : Microsoft Internet Explorer
Version : 4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.30729; .NET CLR 3.5.30729)
Native XmlHTTPRequest : true
Is Java enabled : true
Is cookie enabled : false


Operating System

Name : Windows Vista
Version : 6.0
Architecture : x86
Is process list available : true


Java

Java Installed Directory : C:\Program Files\Java\jre7
JRE Version : 1.7.0_51
Is keytool available : true
Sign In or Register to comment.