Using the Find.ByAttributes<T>() method I am able to find a specific control in the DOM, but once found I cannot cast it to a more specific type, HtmlInputText. The control is an input field, which can be seen in the HtmlControl properties. I then attempt to cast the HtmlControl by simply:
HtmlInputText _email = ctrl as HtmlInputText; (ctrl is the generic HtmlControl)
I could work with the HtmlControl, but there are specific methods and properties that the HtmlInputControl has that the more generic HtmlControl does not.
I was hoping to find any feedback on why the casting could not be done, when the HtmlControl returned was an input control.

How to get a vaule form TextBlock for FontSize.
I need to get number 14 !
<TextBlock Grid.Row="1"
TextWrapping="Wrap"
Margin="5"
Name="TextBlockAbout"
FontSize="14">
</TextBlock>
var fSize = TextBlockAbout.GetProperty<TextBlock>("FontSize");
Regards,
Peter
Hello,
I am having a problem with Manager.ActiveBrowser.Frames.ById() returns null intermittently. The conditions are as follows:
var resultsFrameExpression = new HtmlFindExpression("tagname=iframe", "id=searchResultsFrame");
browser.WaitForElement(resultsFrameExpression, 60000, false); // Successfully returns
browser.RefreshDomTree();
-!!-> resultFrame = browser.Manager.ActiveBrowser.Frames.ById("searchResultsFrame");
Most of the time, resultFrame comes back with a valid result. Sometimes it comes back as null. If there is even a 10 second delay before calling RefreshDomTree() and trying again, it still occurs with about the same frequency. (My assumption was that there may have been a timing issue between WaitForElement()'s successful return before being able to access the element that it successfully claims exists, but this is not the case either.
Any insight as to what I am doing wrong here would be appreciated.
Thanks for your help
Hi,
Do you have some documentation how to run WPF application and use Specflow?
class dTrackingTTF :BaseWpfTest
{
[Given(@"I run the application UK Risk Analyzer")]
public void GivenIRunTheApplicationUKRiskAnalyzer()
{
Manager.LaunchNewApplication(@"C:\Desktop.exe");
Manager.ActiveApplication.Manager.ActiveApplication.MainWindow.Find.ByTextContent("Daily monitoring").User.Click();
}
I get an error:
System.NullReferenceException: Object reference not set to an instance of an object.
Regards,
Peter

Hi,
Is it possible to generate Page Object model pattern for WPF application?
Can you please write or give me one example?
Regards,
Peter

Hi,
I need to get a value from this Chart. Can somebody tell me about that how can I get a value?var rCC =
riskAnalyzer.Manager.ActiveApplication.MainWindow.Find.ByName("RadCartesianChart");

Hi,
I would like to ask how can I find RadCartesianChart on Visual Studio 2015 + Coded UI Test.
http://www.telerik.com/teststudio/visual-studio-testing-plugin-benefits - This is same example for Grid.
I try his but I can't have that option Find.ById
RadCartesianChart radCartesianChart = Find.
Regards,
Peter

Hi,
Dialog Monitor code for handling windows authentication dialog is not working on Win 10 (both IE and Edge). It hangs on logon dialog and not proceed further.
It is working fine on all other browsers.
Code to handle Logon Dialog:
manager.DialogMonitor.AddDialog(LogonDialog.CreateLogonDialog(BrowserManager.MyManager.ActiveBrowser, "" + Domain + @"\" + UserName, @"" + Password, DialogButton.OK));
manager.DialogMonitor.Start();
manager.ActiveBrowser.NavigateTo(@"" + URL);
See the attached screen. It hangs on this popup screen. We are using 2017.1.207.0 version of telerik testing framework.
-Raju
Manager.Desktop.KeyBoard.KeyPress(Keys.Delete, 100);
Manager.Desktop.KeyBoard.KeyPress(Keys.F2, 100);
Manager.Desktop.KeyBoard.KeyPress(Keys.Enter, 100);
Nothing actually happens i.e. the delete key, F2 or Enter key is not being pressed.
Please give a solution on how to resolve this issue?
Thanks,
Sri