Hello,
I need code sample for to click event for customer textblock for silverlight app.it will open customers.I added code
SilverlightApp app = ActiveBrowser.SilverlightApps()[0];
TextBlock tx = app.Find.ByExpression(new XamlFindExpression("XamlTag=radribbontab,automationid=tabAccounting,|,XamlPath=/grid[name=RootPanel]/grid[name=HeaderPanel]/contentpresenter[name=HeaderElement]/grid[0]/textblock[0]")).As<TextBlock>();
Assert.IsNotNull(tx);
tx.Wait.ForExists(10000);
tx.User.Click(MouseClickType.LeftClick);
but it's not working.As<TextBlock>Here we have to give my app textblock name or just TextBlock.
I need code sample for to click event for customer textblock for silverlight app.it will open customers.I added code
SilverlightApp app = ActiveBrowser.SilverlightApps()[0];
TextBlock tx = app.Find.ByExpression(new XamlFindExpression("XamlTag=radribbontab,automationid=tabAccounting,|,XamlPath=/grid[name=RootPanel]/grid[name=HeaderPanel]/contentpresenter[name=HeaderElement]/grid[0]/textblock[0]")).As<TextBlock>();
Assert.IsNotNull(tx);
tx.Wait.ForExists(10000);
tx.User.Click(MouseClickType.LeftClick);
but it's not working.As<TextBlock>Here we have to give my app textblock name or just TextBlock.