// Create the dialog listenerFileUploadDialog theDialog = new FileUploadDialog(waManager.ActiveBrowser, filePath, DialogButton.OPEN);waManager.DialogMonitor.AddDialog(theDialog);// Start the dialog monitor listening, then give it a chance to "breathe"waManager.DialogMonitor.Start();waManager.ActiveBrowser.WaitUntilReady();// Now use the elementfileUploadControl.Upload(filePath, msecWait);// Give the browser a moment to collect itselfwaManager.ActiveBrowser.WaitUntilReady();// Finally, turn the dialog monitor off after all is said and donewaManager.DialogMonitor.RemoveDialog(theDialog);waManager.DialogMonitor.Stop();// Create the dialog listenerFileUploadDialog theDialog = new FileUploadDialog(waManager.ActiveBrowser, filePath, DialogButton.OPEN);waManager.DialogMonitor.AddDialog(theDialog);// Start the dialog monitor listeningwaManager.DialogMonitor.Start();waManager.ActiveBrowser.WaitUntilReady();// Now click the element and handle the dialogfileUploadControl.MouseClick(MouseClickType.LeftDoubleClick);theDialog.WaitUntilHandled(WAIT_Medium);// Give the browser a moment to collect itselfwaManager.ActiveBrowser.WaitUntilReady();// Finally, turn the dialog monitor off after all is said and donewaManager.DialogMonitor.RemoveDialog(theDialog);waManager.DialogMonitor.Stop();
I have tried this with the following versions of Telerik Test Framework installed:
2012.1.719
At this point I am at a loss of what to try next.
Please help.
P.S. A bit of background: I am writing automated tests for three browsers: Chrome, Firefox and Internet Explorer. My desktop is a Windows 7 machine and where development occurs. Changes are committed to SCM. The automated tests are downloaded and built by a Windows Server 2008 instance from SCM. With the various versions of the framework I have made sure that I uninstall the previous version from both machines and cleanly installed the new, to make sure I did not run into any issues with version conflicts.
<span>That's the text</span>browser.Find.ByExpression<HtmlSpan>("TextContent=That's the text");Hi Telerik team,
We have used the RadMasked textbox control for home phone number field of Standard mask type.(___-___-____) which allow 10 digits home phone number and I want to calculate the Radmasked textbox length in coded step.
I have write the following code in script test.
object objhomephone= GetExtractedValue("RmtbHomePhoneNumberText");
int homephone= Convert.ToInt16(objhomephone.ToString().Length);
System.Windows.Forms.MessageBox.Show(homephone.ToString());
I m getting length 12 in message box without entering any digits in home phone number field.
How should i calculate the exact number of digits entered in the rad masked textbox???
Thanks,