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.

Can't get list items using _getText(_List(index))

NaomiCNaomiC Members
edited November 2012 in Sahi - Open Source
OS: Mac OS X 10.7.5
Browser: FireFox v.12
Sahi OS Build: 2011-07-19

It is an <ul> element. Tried to use _getText(_List(2)) to get the text from list items, which returns a string and each list item is separated with a space. The problem is that items themselves contain spaces as well so I can't extract the substrings using space as the delimiter. Can the function be changed to use Tab instead? Or even better, return an array of strings.

Comments

  • asra_mdasra_md Members
    Try this one _getText(_listItem(list item number),_near(_label("lable name")));
Sign In or Register to comment.