This is a migrated thread and some comments may be shown as answers.

Selenium Testing Code for RadComboBox

1 Answer 245 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Nambi
Top achievements
Rank 1
Nambi asked on 13 Aug 2014, 03:22 AM
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

1 Answer, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 13 Aug 2014, 08:08 AM
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.

 
Tags
General Discussions
Asked by
Nambi
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Share this question
or