We would like to store the tests, along with the specific list of components of the telerik testing framework, into the repository. This would help individual automation tester to merely retrieve the artifacts from the repository and execute the tests instead of having the the telerik testing framework installed on their pcs. How feasible is this approach?
Hello,
I am using testing framework. in my computer its work fine. but in another computer the test fail.
the code:
Settings settings = new Settings();
settings.ClientReadyTimeout = 100;
settings.Wpf.DefaultApplicationPath = applicationPath;
Manager manager = new Manager(settings);
var process = Process.GetProcesses().FirstOrDefault(t => t.ProcessName.StartsWith("AAA"));
if (process != null)
{
manager.Start();
manager.ConnectToApplication(process);
}
when I run the test with debugging:
var window = Manager.Current.Applications[0].MainWindow;
window is null.
when I run the test without debugging the exception is:
Exception thrown: 'System.ApplicationException' in ArtOfTest.WebAii.dll
Additional information: Unexpected error. SyncWaitResult was null for this wait
at ArtOfTest.Common.WaitSync.CheckResult(WaitSync wait, String extraExceptionInfo, Object target)
at ArtOfTest.Common.WaitSync.For[T](Predicate`1 predicate, T target, Boolean invertCondition, Int32 timeout, WaitResultType errorResultType)
at ArtOfTest.Common.WaitSync.For[T](Predicate`1 predicate, T target, Boolean invertCondition, Int32 timeout)
at ArtOfTest.Common.WaitSync.For[T](Predicate`1 predicate, T target, Int32 timeout)
at ArtOfTest.WebAii.Wpf.WpfApplication.get_MainWindow()
Hello,
Recently I have started using Testing Framework to test WPF applications (MVVM). Maybe it's the novice's problem but i can't generate RoutedEventArgs on my_button.User.Click(); Operations like TypeText() or Click() should be treated like a normal user actions, aren't they?
I am trying something like this:
_wpfWindow.Find.ByName(UI_Components.Button_LogIn).User.Click();
or
_wpfWindow.Find.ByName(UI_Components.TextBox_Name).User.TypeText(login, 1, 5, true);
During click on LogIn Button (by real mouse) is activating method, by Click() option not. The same problem I have with generating events for KeyPress:
private void OnKeyDownPressed(object sender, KeyEventArgs e)
{
if (e.Key == Key.Enter)
runXXX();
}
private void OnLoginButtonClick(object sender, RoutedEventArgs e)
{
runXXX();
}
How can i fix it or generate KeyEventArgs or RoutedEventArgs. Btw. I couldn't change the code from this both methods, necessary condition.
Greetings.
Hi there,
I'm having problem clicking a button. This website is using Kendo UI so I was wondering if that makes it different for testing.
After I select a file to upload, there is a remove button displaying right next to the file.(Please see removebutton in attachment for more details.) I want to click the submit button after uploading a file but I can't. (Please see buttons to see both buttons) It always clicks the remove button unless I don't select a file, which means only when there's no remove button.
Here is my code and it should select a file from my computer and click the SubmitButton to submit this file.
HtmlButton submitButton = manager.ActiveBrowser.Find.ById<HtmlButton>("SubmitButton");
HtmlInputFile selectFile = manager.ActiveBrowser.Find.ByAttributes<HtmlInputFile>("type=file");
FileUploadDialog uploadDialog = new FileUploadDialog(manager.ActiveBrowser, @"myfilepath",
DialogButton.OPEN,"Select files");
manager.DialogMonitor.AddDialog(uploadDialog);
selectFile.Click();
manager.DialogMonitor.Start();
uploadDialog.WaitUntilHandled(10000);
submitButton.Click();
I've also included a screenshot of the html of the buttons. Please let me know if you need more information. Thank you!
Hi Support,
We are using telerik free testiing framework version 2018.3.1004.0. But it is not handling the alert, confirm dialogs on latest chrome i.e chrome 70.
Please note that i am using the latest telerik extension as weel for executions.
Any help on this will be appreciated.
Thanks
Vinay
Using this code, Firefox does not find the iFrame, it is found using IE and Chrome.
ArtOfTest.WebAii.Core.Browser frame = ActiveBrowser.Frames[0];
Assert.IsNotNull(frame, "Frame not found");
There is only 1 frame in the page and it doesn't have a name.
Test studio version 2018.3.1004.0
Firefox 63.0.3 (64 bit)
Is this a known issue as I couldn't find anything about this when searching?
regards
Si
Clicking on the upload button using click method or submit in Selenium Test Automation doesnt work. Have tried to execute the jquery using click, but it doesnt work.
((IJavaScriptExecutor)driver).ExecuteAsyncScript(String.Format("$('#attachments').click();"));
here #attachments is the id of the select/upload button. I have tried to use ExecuteSyncScript too which doesnt work.