Hello.
Your framework is very useful but what did you think about find elements by css selector(like WebDriver) or smth like that:
Find.ById(
"topPanel"
).Find.ByAttributes(
"class='buttonPanel'"
).Find.By.......
<
div
id
=
"topPanel"
>
<
div
class
=
"buttonPanel"
>
<
a
>Create New</
a
>
<
a
>Import</
a
>
<
a
>Create Deploy Configuration</
a
>
</
div
>
</
div
>
Hi Telerik,
I have to capture memory footprint after garbage collection has been done. Is there any way we can know that garbage collection has been done?
I am seeing some memeory leaks when DOM increases. Can we force garbage collection using telerik testing framework?
Hey there,
the application I am testing opens a new tab when the user clicks a button and in the case under test immediately closes this tab to show an inline dialog. Our test simulates the button click and waits for the dialog to appear. The test works fine in all browsers except for Microsoft Edge. In Edge, after the new tab has been opened and closed, the DOM tree reference in ActiveBrowser is null. The TestFramework Exception suggests to call RefreshDomTree() or NavigateTo() but RefreshDomTree() does have no effect and I cannot use NavigateTo() because this will cause a page refresh and the dialog is gone. Is this a know issue with Edge? Is there another way to get the DOM tree back without having to refresh the page?
Thanks for your help!
Hendrik
Hi telerik,
I want to fetch the errors[any type of error, not just of javascript] from browser console. I am not seeing any way to interact with browser console window.
Please note that i am using telerik testing framework for my tests. Any way to achieve this?
Please see the screenshot.
Hi,
I am encountering an exception while calling a method DocumentStatisticsInfo() on RadRichTextBox in framework, the exception is "object not referenced to an instance of an object", its WPF application. What could be the issue?
Regards,
Imran.
Hi Telerik,
I have a scenario where i have to test an application using different browser zoom levels[75%, 125% etc.]. I am using Manager.LaunchNewBrowser() to launch a broser session but that always opened with 100% zoom. I know that 100% zoom is recommended to get correct results. But my test scenario is bit different here.
I want to launch browsers with different zoom level. I havn't found any setting to set the zoom level.
Please note that i am using telerik testing framework for my tests. I am not using test studio.
Please look into this.
Hi telerik,
I am working on a test scenario where i need to verify the browser window geomatery with different quadrants[4 qudrants -+X and -+Y axis].
Basically i want to open the browser window at specified location and then captured the quadrants. After this i will again opened the browser window at the same location and captured the quadrants again. Then compare both the captured values for equality.
My questions:
1. How to launch the browser at specified location/position?
2. How to capture the quadrants?
Please look into this.
I'm trying to use the Manager's DialogMonitor class to handle dialogues triggered by javascript over the course of testing.
I've tried running this before tests start:
Confirm = new ConfirmDialog(browser, DialogButton.OK);
manager.DialogMonitor.AddDialog(Confirm);
OnBeforeUnload = new OnBeforeUnloadDialog(browser, DialogButton.OK);
manager.DialogMonitor.AddDialog(OnBeforeUnload);
Alert = new AlertDialog(browser, DialogButton.OK);
manager.DialogMonitor.AddDialog(Alert);
manager.DialogMonitor.Start();
However, it appears that the monitor doesn't even register that dialogues are appearing when testing in Chrome.
I've also tried this:
Confirm = new ConfirmDialog(browser, DialogButton.OK);
Confirm.HandlerDelegate =
dialog => {
manager.Desktop.KeyBoard.KeyPress(Keys.Enter);
};
manager.DialogMonitor.AddDialog(Confirm);
OnBeforeUnload = new OnBeforeUnloadDialog(browser, DialogButton.OK);
OnBeforeUnload.HandlerDelegate = Confirm.HandlerDelegate;
manager.DialogMonitor.AddDialog(OnBeforeUnload);
Alert = new AlertDialog(browser, DialogButton.OK);
Alert.HandlerDelegate = Confirm.HandlerDelegate;
manager.DialogMonitor.AddDialog(Alert);
manager.DialogMonitor.Start();
The delegate is never called, no matter what type of dialog is triggered or when it happens.
Is there some setting I don't know about to allow handling Chrome dialogues, or does the framework as it is now just not support Chrome?
Hi I am using Telerik Testing Framework and while launching a WPF application I am encountering an exception
Test Name: TestMethod1
Test FullName: TestStudioProject1.UnitTest1.TestMethod1
Test Source: C:\Imran\Code\Emdat\Inscribe-CUIT-automation\CodedUITest_TelerikEditor\TestStudioProject1\UnitTest1.cs : line 23
Test Outcome: Failed
Test Duration: 0:00:07.5626828
Result StackTrace:
at ArtOfTest.Common.Win32.Connector.InjectCode(IntPtr handle, String assemblyAndClass, String pipename, String pid, Boolean waitForDocument, Int32 waitForDocumentTimeout, String navigateUrl)
at ArtOfTest.WebAii.Wpf.WpfWindow.ConnectToWindow(IntPtr handle, String pipename, String pid)
at ArtOfTest.WebAii.Wpf.WpfApplication.get_MainWindow()
at ArtOfTest.WebAii.Core.Manager.LaunchNewApplication(ProcessStartInfo pinfo)
at ArtOfTest.WebAii.Core.Manager.LaunchNewApplication(String path, String[] args)
at TestStudioProject1.UnitTest1.TestMethod1() in C:\Imran\Code\Emdat\Inscribe-CUIT-automation\CodedUITest_TelerikEditor\TestStudioProject1\UnitTest1.cs:line 25
Result Message:
Test method TestStudioProject1.UnitTest1.TestMethod1 threw exception:
System.NullReferenceException: Object reference not set to an instance of an object.
The code is
public void TestMethod1()
{
Manager manager = new Manager(true);
WpfApplication wpfApplication = manager.LaunchNewApplication(@"C:\TelerikWpfApp2\TelerikWpfApp1\bin\Debug\TelerikWpfApp1.exe");
var richtextbox = wpfApplication.MainWindow.Find.ByAutomationId<ArtOfTest.WebAii.Controls.Xaml.Wpf.RichTextBox>("radRichTextBox");
}
Let me know am I missing anything here!!!
Thanks,
Imran