Finding True Element Everytime.

3 posts, 0 answers
  1. İsmail Yusuf
    İsmail Yusuf avatar
    15 posts
    Member since:
    Jun 2015

    Posted 17 Jun 2015 Link to this post

    Hi all,

    I have a problem about searching in table. Actually, i need to verify listed items in table contains given input. However, i can not find true element for verification. I added images for you to understand the problem.

  2. Pravallika
    Pravallika avatar
    14 posts
    Member since:
    Dec 2014

    Posted 17 Jun 2015 Link to this post


    I suppose your question is to find out all the elements with tag li in the given table right?

     You can achieve it using a coded step with the line of code below:

    IList<HtmlListItem> list = Pages.PageName.TableName.Find.AllByExpression<HtmlListItem>("tagname=li", "InnerText=~"+"<yourinput>");


    Hope this is helpful!




  3. Boyan Boev
    Boyan Boev avatar
    1025 posts

    Posted 22 Jun 2015 Link to this post


    @Pravallika thank you for your input and help.

    @Ismail, is this what you want to achieve? 

    After you collect all ListItems in a collection you can foreach them and find exactly what you need in them.

    If this is not your case please elaborate a bit more on your scenario so we can help you best.

    Hope to hear from you soon.

    Boyan Boev
    The New Release of Telerik Test Studio Is Here! Download, install,
    and send us your feedback!
Back to Top