Need help with dynamic search page

3 posts, 0 answers
  1. K
    K avatar
    1 posts
    Member since:
    Apr 2016

    Posted 18 Apr Link to this post

    Hello,

    I am using Test Studio for the first time this week. I was hoping to get some help with testing a search page (link below). When I go to the search page and type in 'ch' I get several dynamic items to choose from. Is there a web page that shows me the method or properites I need? Any help would be appriciated. My question are.....
    1. How can I get a count on the number of dynamic items that appear as I type in my two letters?
    2. How can I get a list of the items and send it to the log file?
    3. If I find the item I'm looking for, how can I select it and mark it as "Pass" ?


    Link to search page --> http://demos.telerik.com/aspnet-ajax/searchbox/examples/search-context/defaultcs.aspx

    I assumed I needed code to get what I needed (if not please let me know). Below is what little code I have so far. My questions are...

    =================<code so far>=======================================
    [CodedStep(@"RadSearchBoxDropDown('aspnetForm'): selecting item '3'")]
     public void WebTest_CodedStep()
     {
    HtmlControl items = Pages.SearchContextFunctionality.Div;
    Log.WriteLine("Count =====> " + items.ChildNodes.Count.ToString());
    int counter = 0;
    foreach (Element e in items.ChildNodes)
     {
     counter = counter + 1;
    Log.WriteLine("----> Item " + counter.ToString());
    Log.WriteLine(Pages.SearchContextFunctionality.Div.TextContent);
     }
     // RadSearchBoxDropDown('aspnetForm'): selecting item '0'
    Pages.SearchContextFunctionality.Div.SelectItem(3);
     }
    =================<end code>=======================================

  2. Boyan Boev
    Admin
    Boyan Boev avatar
    1039 posts

    Posted 21 Apr Link to this post

    Hi,

    Thank you for contacting us.

    Please allow me some more time to investigate this and prepare a code example for you.

    I will update this thread accordingly.

    Thank you!

    Regards,
    Boyan Boev
    Telerik
     
    The New Release of Telerik Test Studio Is Here! Download, install,
    and send us your feedback!
  3. Boyan Boev
    Admin
    Boyan Boev avatar
    1039 posts

    Posted 29 Apr Link to this post

    Hi,

    Please excuse me for the delayed replay.

    It seems that this is a duplicate of your other ticket.

    Let's please continue the discussion there.

    Thank you!

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