Selenium Testing Code for RadComboBox

2 posts, 0 answers
  1. Nambi
    Nambi avatar
    6 posts
    Member since:
    Sep 2011

    Posted 12 Aug 2014 Link to this post

    Hi Team,
        I want to perform the testing for RadComboBox used in the webpage using selenium. My requirement is i need to Select the item in RadComboBox.


    Code i tried:
    var cboCountry = driver.FindElement(By.Id("cboCountry_Arrow"));
    cboCountry.Click();
     IWebElement List = driver.FindElement(By.Id("cboCountry_Input"));
    var item = List.FindElement(By.XPath("//li[text()='Malaysia']"));
    item.Click();

    I am not able to accomplish this. It gives the error, the element is not displayed in the page.

    Could you please provide the code for all the Rad controls that i can use it for testing using Selenium
  2. Dimitar
    Admin
    Dimitar avatar
    281 posts

    Posted 13 Aug 2014 Link to this post

    Hi Nambi,

    We are no longer using Selenium IDE for Telerik UI for ASP.NET AJAX controls testing. Currently, we are using Telerik Test Studio as well as the free Telerik Test Studio Testing Framework for test automation.

    You may find information on how to automate with Selenium IDE in previously published blog and forum posts. I suggest you to check the Selenium Scripts for RadControls, Firebug and XPath Support blog post and the following forum thread concerning RadComboBox testing with Selenium.

    I would recommend you, however, to try the Testing Framework and Test Studio products, since they provide a rich API that expose numerous properties and methods to help you easily build non-brittle, maintainable functional tests.

    Regards,
    Dimitar
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top