This question is locked. New answers and comments are not allowed.
Hi everyone,
I've created a Win Forms program in Visual Studio C#. The program is very simple:
1 combo box where I have the four browser supported by Telerik TS (Chrome, IE, Safari and Firefox)
1 "Start Test" button
Basically, I have my test code in the button, so I just need to choice the browser and click the button to start the automated code.
To create the code that test the web site, I've added the Telerik references to the Win Forms.
Everything is good with Chrome, but with the other browser I just get this error:
I don't know why the test is not finding the reference to the object with id "1245", the only thing that occurs is that the code can open the URL in the browser.
My question is, do you know if is possible to do this? or... I'm getting this error because this is not completely possible?
Please let me know if you need more details about my problem,
Thanks in advance,
Juan
I've created a Win Forms program in Visual Studio C#. The program is very simple:
1 combo box where I have the four browser supported by Telerik TS (Chrome, IE, Safari and Firefox)
1 "Start Test" button
Basically, I have my test code in the button, so I just need to choice the browser and click the button to start the automated code.
To create the code that test the web site, I've added the Telerik references to the Win Forms.
Everything is good with Chrome, but with the other browser I just get this error:
?myManager.ActiveBrowser.Find.ByAttributes<HtmlAnchor>("id=1245").Click()
'((ArtOfTest.WebAii.Controls.HtmlControls.HtmlControl)(myManager.ActiveBrowser.Find.ByAttributes<HtmlAnchor>("id=1245")))' is null
I don't know why the test is not finding the reference to the object with id "1245", the only thing that occurs is that the code can open the URL in the browser.
My question is, do you know if is possible to do this? or... I'm getting this error because this is not completely possible?
Please let me know if you need more details about my problem,
Thanks in advance,
Juan