or
<table id="descriptorTable" class="rf-dt table table-striped"><colgroup span="5"></colgroup><thead id="descriptorTable:th" class="rf-dt-thd"><tbody id="descriptorTable:tb" class="rf-dt-b"><tr class="rf-dt-r rf-dt-fst-r"><td id="descriptorTable:0:j_idt664" class="rf-dt-c" style="text-align: center;"><input type="checkbox" onclick="updateButtonState()" name="descriptorTable:0:j_idt665"></td><td id="descriptorTable:0:j_idt666" class="rf-dt-c" style="text-align: center;">ANEEIGP</td><td id="descriptorTable:0:j_idt668" class="rf-dt-c" style="text-align: center;">2</td><td id="descriptorTable:0:j_idt670" class="rf-dt-c" style="text-align: center;"><td id="descriptorTable:0:j_idt672" class="rf-dt-c" style="text-align: center;"></tr><tr class="rf-dt-r firefinder-match"></tbody><tbody id="descriptorTable:sc"></table>$('#descriptorTable tr:contains(\'ANEEIGP\') input');Find.ByExpression<HtmlControl>("id=descriptorTable", "|", "tagindex=tbody:0").Find.jQuery().tag("tr").contains(closedProejct).first<HtmlTableRow>(). Find.ByExpression<HtmlInputCheckBox>("tagname=input").Check(true, true);Find.ByExpression<HtmlControl>("id=descriptorTable", "|", "tagindex=tbody:0").Find.jQuery().tag("tr").descendant() .contains(closedProejct).parent().tag("tr").first<HtmlTableRow>(). Find.ByExpression<HtmlInputCheckBox>("tagname=input").Check(true, true);MyWindow.MyPanel.MySubPanel.MyControlpublic class MyPanel : CustomPanelWrapper{ private CustomPanelWrapper subPanel; public CustomPanelWrapper MySubPanel { get { return subPanel ?? (subPanel = this.Find.ByAutomationId<CustomPanelWrapper>("MySubPanel"); } } }public class CustomPanelWrapper : FrameworkElement{ ....}public class MyTestRunner{ private TelerikWpfTestRunner telerikTestRunner; public void StartTest() { var appProcess = new Process(); appProcess.StartInfo.FileName = <filePath>; appProcess.StartInfo.WorkingDirectory= <App Directory>; appProcess.Start(); telerikTestRunner = new TelerikWpfTestRunner(appProcess, <logPath>); } public void StopTest() { telerikTestRunner.CleanUp(); telerikTestRunner.Dispose(); }}public class TelerikWpfTestRunner : BaseWpfTest{ public TelerikWpfTestRunner (Process appProcess, string logPath) { Initialize(logPath); Application = Manager.ConnectToApplication(appProcess); Manager.ActiveApplication.MainWindow.RefreshVisualTrees(); Manager.ActiveApplication.QuitOnDetach = true; Application.WaitForWindow(<MainWindow>); }}[TestClass]public class Login : RadControlsBaseTest{ [TestMethod()] public void SettingUpBrowser() { SetUpBrowser(capiPage); ActiveBrowser.WaitUntilReady(); } [TestMethod()] [DeploymentItem("Data\\Login.xlsx", "Data")] [DataSource("LoginDataSource")] public void LoginTest() { if (TestContext.DataRow != null) { string Username = TestContext.DataRow["Username"].ToString(); string Password = TestContext.DataRow["Password"].ToString(); string ExpectedResult = TestContext.DataRow["Expected Result"].ToString(); string ErrorText = TestContext.DataRow["Error Text"].ToString(); Login(capiPage, Username, Password); ActiveBrowser.WaitUntilReady(); if (ExpectedResult.Equals("Fail")) { //compare error text } else if (ExpectedResult.Equals("Pass")) { //can navigate to main screen } } } protected void SetUpBrowser(PageControls page) { if(Manager.ActiveBrowser == null) Manager.LaunchNewBrowser(); ActiveBrowser.ClearCache(BrowserCacheType.Cookies); ActiveBrowser.ClearCache(BrowserCacheType.TempFilesCache); ActiveBrowser.NavigateTo("/" + page.pageURL); } protected void Login(PageControls page, string username, string password) { //waiting for page to redirect to the login page Manager.ActiveBrowser.WaitUntilReady(); if (Manager.ActiveBrowser.ContainsText("Login.aspx") == true) { HtmlInputText txtUserName = Find.ById<HtmlInputText>("loginControls_txtUserName"); AttributeUtils.chkNotNull(txtUserName, "loginControls_txtUserName"); HtmlInputPassword txtPwd = Find.ById<HtmlInputPassword>("loginControls_txtPassword"); AttributeUtils.chkNotNull(txtPwd, "loginControls_txtPassword"); HtmlInputSubmit btnLogin = Find.ById<HtmlInputSubmit>("loginControls_btnLogin"); AttributeUtils.chkNotNull(btnLogin, "loginControls_btnLogin"); txtUserName.Text = username; txtPwd.Text = password; btnLogin.Click(); } }}[TestClass] public class MyTest:BaseTest { [TestMethod] public void TestMethodChrome() { base.Initialize(); Manager.LaunchNewBrowser(BrowserType.Chrome); ActiveBrowser.Cookies.SetCookie(new System.Net.Cookie("mycookie", "myvalue", "/", "www.google.com")); ActiveBrowser.NavigateTo("http://www.google.com"); } [TestMethod] public void TestMethodFireFox() { base.Initialize(); Manager.LaunchNewBrowser(BrowserType.FireFox); ActiveBrowser.Cookies.SetCookie(new System.Net.Cookie("mycookie", "myvalue", "/", "www.google.com")); ActiveBrowser.NavigateTo("http://www.google.com"); } }