Telerik Forums
Testing Framework Forum
1 answer
117 views
Hii,
While trying to automate a testcase in Chrome , I am getting Execute Command Exception
during DomRefresh, AutoWaitUntillReady or button.click() .Behaviour is random, when tried many
times, test fails at different locations with same exception.
I have tried this with both 13.0 and 19.0 version of chrome and both 2012.1.528.0  and 2012.1.411.0
version of framework. ANY HELP???
Plamen
Telerik team
 answered on 29 May 2012
5 answers
220 views
Often times our automation build hangs on random tests.  I have been able to narrow the hang down to the Manager.Dispose function.

We are automating a Silverlight application in IE.

When the hang happens there are no instances of IE open and I have to kill the hosting process (nunit-console.exe) in task manager.

Is this a known issue?  Is there any way for me to work around this?

I have crash dumps I can make available if necessary.

Here are some specs of the environment:
WebAII version: Telerik_Testing_Framework_2011_2_1413_FREE_EDITION
OS: Windows Server 2003 Service Pack 2 32bit
Browser: IE 8
Test Harness: NUnit
.Net Version: 4.0
Silverlight Version: 5.0
Ram: 1gb
CPU: 1 Cores @ 2.1 Ghz 

The following is the call stack for the thread that is hung:

ntdll.dll!_KiFastSystemCallRet@0() 
ntdll.dll!_NtWaitForMultipleObjects@20()  + 0xc bytes  
kernel32.dll!_WaitForMultipleObjectsEx@20()  + 0xd2 bytes  
user32.dll!_RealMsgWaitForMultipleObjectsEx@20()  + 0xbf bytes 
ole32.dll!CCliModalLoop::BlockFn()  + 0x358 bytes  
ole32.dll!_CoWaitForMultipleHandles@20()  + 0xb7 bytes 
[Managed to Native Transition] 
mscorlib.dll!System.Threading.WaitHandle.InternalWaitOne(System.Runtime.InteropServices.SafeHandle waitableSafeHandle, long millisecondsTimeout, bool hasThreadAffinity, bool exitContext) + 0x2b bytes
mscorlib.dll!System.Threading.WaitHandle.WaitOne(System.TimeSpan timeout, bool exitContext) + 0x6e bytes   
WindowsBase.dll!System.Windows.Threading.DispatcherOperation.DispatcherOperationEvent.WaitOne() + 0x35 bytes   
WindowsBase.dll!System.Windows.Threading.DispatcherOperation.Wait(System.TimeSpan timeout) + 0x87 bytes
WindowsBase.dll!System.Windows.Threading.Dispatcher.InvokeImpl(System.Windows.Threading.DispatcherPriority priority, System.TimeSpan timeout, System.Delegate method, object args, int numArgs) + 0xdb bytes   
WindowsBase.dll!System.Windows.Threading.Dispatcher.CriticalInvokeShutdown() + 0x63 bytes  
ArtOfTest.WebAii.dll!ArtOfTest.WebAii.Win32.UIADispatcherProvider.ClearDispatcher() + 0x47 bytes   
ArtOfTest.WebAii.dll!ArtOfTest.WebAii.Core.Manager.End() + 0x37c bytes 
ArtOfTest.WebAii.dll!ArtOfTest.WebAii.Core.Manager.Dispose(bool disposing) + 0x1c bytes
WebWise.Automation.Framework.DLL!WebWise.Automation.Framework.WebWiseAutomationClient.Dispose() Line 144 + 0x1c bytes   C#
WebWise.Automation.Tests.DLL!WebWise.Automation.Tests.BaseAutomationFixture.FixtureTearDown() Line 43 + 0x49 bytes  C#
[Native to Managed Transition] 
[Managed to Native Transition] 
nunit.core.DLL!NUnit.Core.Reflect.InvokeMethod(System.Reflection.MethodInfo method, object fixture, object[] args) + 0x39 bytes
nunit.core.DLL!NUnit.Core.TestSuite.DoOneTimeTearDown(NUnit.Core.TestResult suiteResult = {NUnit.Core.TestResult}) + 0x92 bytes
nunit.core.DLL!NUnit.Core.NUnitTestFixture.DoOneTimeTearDown(NUnit.Core.TestResult suiteResult = {NUnit.Core.TestResult}) + 0xf bytes  
nunit.core.DLL!NUnit.Core.TestSuite.RunSuite(NUnit.Core.EventListener listener, NUnit.Core.ITestFilter filter) + 0x20d bytes   
nunit.core.DLL!NUnit.Core.TestSuite.RunSuiteInContext(NUnit.Core.EventListener listener, NUnit.Core.ITestFilter filter) + 0x43 bytes   
nunit.core.DLL!NUnit.Core.TestSuite.Run(NUnit.Core.EventListener listener = {NUnit.Core.QueuingEventListener}, NUnit.Core.ITestFilter filter) + 0x67 bytes 
nunit.core.DLL!NUnit.Core.TestFixture.Run(NUnit.Core.EventListener listener, NUnit.Core.ITestFilter filter) + 0x61 bytes   
nunit.core.DLL!NUnit.Core.TestSuite.RunAllTests(NUnit.Core.TestResult suiteResult = {NUnit.Core.TestResult}, NUnit.Core.EventListener listener = {NUnit.Core.QueuingEventListener}, NUnit.Core.ITestFilter filter = {NUnit.Core.TestFilter.EmptyFilter}) + 0x188 bytes 
nunit.core.DLL!NUnit.Core.TestSuite.RunSuite(NUnit.Core.EventListener listener, NUnit.Core.ITestFilter filter) + 0x1dc bytes   
nunit.core.DLL!NUnit.Core.TestSuite.RunSuiteInContext(NUnit.Core.EventListener listener, NUnit.Core.ITestFilter filter) + 0x43 bytes   
nunit.core.DLL!NUnit.Core.TestSuite.Run(NUnit.Core.EventListener listener = {NUnit.Core.QueuingEventListener}, NUnit.Core.ITestFilter filter) + 0x67 bytes 
nunit.core.DLL!NUnit.Core.TestSuite.RunAllTests(NUnit.Core.TestResult suiteResult = {NUnit.Core.TestResult}, NUnit.Core.EventListener listener = {NUnit.Core.QueuingEventListener}, NUnit.Core.ITestFilter filter = {NUnit.Core.TestFilter.EmptyFilter}) + 0x188 bytes 
nunit.core.DLL!NUnit.Core.TestSuite.RunSuite(NUnit.Core.EventListener listener, NUnit.Core.ITestFilter filter) + 0x1dc bytes   
nunit.core.DLL!NUnit.Core.TestSuite.RunSuiteInContext(NUnit.Core.EventListener listener, NUnit.Core.ITestFilter filter) + 0x43 bytes   
nunit.core.DLL!NUnit.Core.TestSuite.Run(NUnit.Core.EventListener listener = {NUnit.Core.QueuingEventListener}, NUnit.Core.ITestFilter filter) + 0x67 bytes 
nunit.core.DLL!NUnit.Core.TestSuite.RunAllTests(NUnit.Core.TestResult suiteResult = {NUnit.Core.TestResult}, NUnit.Core.EventListener listener = {NUnit.Core.QueuingEventListener}, NUnit.Core.ITestFilter filter = {NUnit.Core.TestFilter.EmptyFilter}) + 0x188 bytes 
nunit.core.DLL!NUnit.Core.TestSuite.RunSuite(NUnit.Core.EventListener listener, NUnit.Core.ITestFilter filter) + 0x1dc bytes   
nunit.core.DLL!NUnit.Core.TestSuite.RunSuiteInContext(NUnit.Core.EventListener listener, NUnit.Core.ITestFilter filter) + 0x43 bytes   
nunit.core.DLL!NUnit.Core.TestSuite.Run(NUnit.Core.EventListener listener = {NUnit.Core.QueuingEventListener}, NUnit.Core.ITestFilter filter) + 0x67 bytes 
nunit.core.DLL!NUnit.Core.TestSuite.RunAllTests(NUnit.Core.TestResult suiteResult = {NUnit.Core.TestResult}, NUnit.Core.EventListener listener = {NUnit.Core.QueuingEventListener}, NUnit.Core.ITestFilter filter = {NUnit.Core.TestFilter.EmptyFilter}) + 0x188 bytes 
nunit.core.DLL!NUnit.Core.TestSuite.RunSuite(NUnit.Core.EventListener listener, NUnit.Core.ITestFilter filter) + 0x1dc bytes   
nunit.core.DLL!NUnit.Core.TestSuite.RunSuiteInContext(NUnit.Core.EventListener listener, NUnit.Core.ITestFilter filter) + 0x43 bytes   
nunit.core.DLL!NUnit.Core.TestSuite.Run(NUnit.Core.EventListener listener = {NUnit.Core.QueuingEventListener}, NUnit.Core.ITestFilter filter) + 0x67 bytes 
nunit.core.DLL!NUnit.Core.TestSuite.RunAllTests(NUnit.Core.TestResult suiteResult = {NUnit.Core.TestResult}, NUnit.Core.EventListener listener = {NUnit.Core.QueuingEventListener}, NUnit.Core.ITestFilter filter = {NUnit.Core.TestFilter.EmptyFilter}) + 0x188 bytes 
nunit.core.DLL!NUnit.Core.TestSuite.RunSuite(NUnit.Core.EventListener listener, NUnit.Core.ITestFilter filter) + 0x1dc bytes   
nunit.core.DLL!NUnit.Core.TestSuite.RunSuiteInContext(NUnit.Core.EventListener listener, NUnit.Core.ITestFilter filter) + 0x43 bytes   
nunit.core.DLL!NUnit.Core.TestSuite.Run(NUnit.Core.EventListener listener = {NUnit.Core.QueuingEventListener}, NUnit.Core.ITestFilter filter) + 0x67 bytes 
nunit.core.DLL!NUnit.Core.TestSuite.RunAllTests(NUnit.Core.TestResult suiteResult = {NUnit.Core.TestResult}, NUnit.Core.EventListener listener = {NUnit.Core.QueuingEventListener}, NUnit.Core.ITestFilter filter = {NUnit.Core.TestFilter.EmptyFilter}) + 0x188 bytes 
nunit.core.DLL!NUnit.Core.TestSuite.RunSuite(NUnit.Core.EventListener listener, NUnit.Core.ITestFilter filter) + 0x1dc bytes   
nunit.core.DLL!NUnit.Core.TestSuite.RunSuiteInContext(NUnit.Core.EventListener listener, NUnit.Core.ITestFilter filter) + 0x43 bytes   
nunit.core.DLL!NUnit.Core.TestSuite.Run(NUnit.Core.EventListener listener = {NUnit.Core.QueuingEventListener}, NUnit.Core.ITestFilter filter) + 0x67 bytes 
nunit.core.DLL!NUnit.Core.SetUpFixture.Run(NUnit.Core.EventListener listener, NUnit.Core.ITestFilter filter) + 0x61 bytes  
nunit.core.DLL!NUnit.Core.TestSuite.RunAllTests(NUnit.Core.TestResult suiteResult = {NUnit.Core.TestResult}, NUnit.Core.EventListener listener = {NUnit.Core.QueuingEventListener}, NUnit.Core.ITestFilter filter = {NUnit.Core.TestFilter.EmptyFilter}) + 0x188 bytes 
nunit.core.DLL!NUnit.Core.TestSuite.RunSuite(NUnit.Core.EventListener listener, NUnit.Core.ITestFilter filter) + 0x1dc bytes   
nunit.core.DLL!NUnit.Core.TestSuite.RunSuiteInContext(NUnit.Core.EventListener listener, NUnit.Core.ITestFilter filter) + 0x43 bytes   
nunit.core.DLL!NUnit.Core.TestSuite.Run(NUnit.Core.EventListener listener = {NUnit.Core.QueuingEventListener}, NUnit.Core.ITestFilter filter) + 0x67 bytes 
nunit.core.DLL!NUnit.Core.SimpleTestRunner.Run(NUnit.Core.EventListener listener = {NUnit.Core.QueuingEventListener}, NUnit.Core.ITestFilter filter, bool tracing, NUnit.Core.LoggingThreshold logLevel) + 0xaf bytes  
nunit.core.DLL!NUnit.Core.TestRunnerThread.TestRunnerThreadProc() + 0x47 bytes 
mscorlib.dll!System.Threading.ThreadHelper.ThreadStart_Context(object state) + 0x63 bytes  
mscorlib.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state, bool ignoreSyncCtx) + 0xb0 bytes   
mscorlib.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state) + 0x2c bytes   
mscorlib.dll!System.Threading.ThreadHelper.ThreadStart() + 0x44 bytes  
[Native to Managed Transition] 
kernel32.dll!_BaseThreadStart@8()  + 0x34 bytes
Stoich
Telerik team
 answered on 28 May 2012
2 answers
148 views
Hi

I think I have found a bug in the HtmlFindExpressions either that or I have stared my self completely blind on a obvious problem and in any case i need somebody to review and help :)

Problem:
I have a HtmlFindExpression that I belive should do the same as a XPATH I have created, the problem is that my XPATH works but my HtmlFindExpression only find 1 item(Expected 10). I have created some test code below and put some areas around the blocks.

Explation of areas:
Area1:
Finding elements with xpath which works as expected
Problem: none

Area2:
Finding elements with pure HtmlFindExpression.
Problem: Finds 1 element instead of 10

Area3:
Attempting to find the element by putting xpath inside a HtmlFindExpression.
Problem: Telerik throws error that it doesn't support hierarchal dependency in HtmlFindExpressions, but there isn't a hierarchal dependency in this xpath.

NOTE: Added a screenshot of the result i get.

Manager.LaunchNewBrowser(BrowserType.FireFox);
 
 
Thread.Sleep(10000); // Didn't bother with a real wait.
 
ActiveBrowser.RefreshDomTree();
 
 
// Expected count is 10
 
// Area1
// Test with XPATH: This seems to work
Console.WriteLine("AREA1 ** START **");
string xpath = "//li[contains(@class,'postItem') and @data-url]";
ReadOnlyCollection<Element> collection = ActiveBrowser.Find.AllByXPath(xpath);
Console.WriteLine("XPATH find all as element count: " + collection.Count);
ReadOnlyCollection<HtmlListItem> collection1 = ActiveBrowser.Find.AllByXPath<HtmlListItem>(xpath);
Console.WriteLine("XPATH find all as HtmlListItem count: " + collection1.Count);
Console.WriteLine("AREA1 ** END **");
 
// Area2
// Test with HtmlFindExpression: This finds nothing
Console.WriteLine("AREA2 ** Start **");
HtmlFindExpression findExp = new HtmlFindExpression("tagname=li", "class=~postItem", "innermarkup=~data-url");
ReadOnlyCollection<Element> collection4 = ActiveBrowser.Find.AllByExpression(findExp);
Console.WriteLine("HtmlFindExpression find all as element count: " + collection4.Count);
ReadOnlyCollection<HtmlListItem> collection5 = ActiveBrowser.Find.AllByExpression<HtmlListItem>(findExp);
Console.WriteLine("HtmlFindExpression find all as HtmlListItem count: " + collection5.Count);
Console.WriteLine("AREA2 ** END **");
 
// Area3
// Test with XPATH inside HtmlFindExpression: This is misinterpreted
Console.WriteLine("AREA3 ** Start **");
HtmlFindExpression findExp1 = new HtmlFindExpression("xpath=//li[contains(@class,'postItem') and @data-url]");
ReadOnlyCollection<Element> collection2 = ActiveBrowser.Find.AllByExpression(findExp1);
ReadOnlyCollection<HtmlListItem> collection3 = ActiveBrowser.Find.AllByExpression<HtmlListItem>(findExp1);
Console.WriteLine("AREA3 ** END **");
Martin
Top achievements
Rank 1
 answered on 25 May 2012
4 answers
136 views
Hi everyone!

I'm having a problem with Chrome, the web site that I;m automating is opening an unexpected page in a second tab in Chrome. I've read that is possible to disable the tabs in other browsers, but in chrome is impossible disabling the tabs.

The problem is that I don't know hot to return to my first tab (the SetFocus method doesn't work for this)
Could someone know how to manage the tabs in Chrome?

See the attached image with an example

Please advice,
Thanks!
Anthony
Telerik team
 answered on 24 May 2012
2 answers
77 views
 Hi,

 I just installed the latest Telerik Testing Framework (2012.1.411) and changed a line in
 SilverlightHealthcareSample.cs so that I can use app.config to switch browsers.

 line 136 from the hard coded InternetExplorer to the app.config's browser settings
      | //            Manager.LaunchNewBrowser(BrowserType.InternetExplorer);
      |       Manager.LaunchNewBrowser(Manager.Settings.DefaultBrowser);

 When set to FireFox, the test crashes in the searchScroll.InvokeMethod line.

      | SilverlightHealthcareSample.cs:line 279 searchScroll.InvokeMethod(scrollVert, 2000);

Error Message:
      | Test method QuickStarts_VSTS_CS.SilverlightHealthcareSample.HealthCareDemo threw exception:
      | ArtOfTest.WebAii.Silverlight.ExecuteSilverlightCommandException: [Silverlight Extension Error] Details: System.NullReferenceException: Object reference not set to an instance of an object.
      |    at ArtOfTest.WebAii.Silverlight.AutomationMethod.ReturnsAutomationPeer()
      |    at Telerik.TestingFramework.XamlExtension.ClientProcessor.ProcessCommand(String command)
      |  

Error Stack Trace:
      | ArtOfTest.WebAii.Silverlight.SilverlightProxy.ExecuteSLCommand(SilverlightCommand cmd)
      | ArtOfTest.WebAii.Silverlight.SilverlightProxy.InvokeMethod(AutomationMethod method, IAutomationPeer peer)
      | ArtOfTest.WebAii.Silverlight.AutomationObject`1.InvokeMethod(AutomationMethod method, Object[] parameters)
      | QuickStarts_VSTS_CS.SilverlightHealthcareSample.HealthCareDemo() in C:\programs\x86\ttf2012.1.411\Samples\Testing Framework\QuickStarts_VSTS_CS\Tests\SilverlightHealthcareSample.cs: line 279
      |

I hope you can reproduce and find a fix.

Thanks,
Plamen
Telerik team
 answered on 22 May 2012
15 answers
263 views
Hi Telerik team,

I write the following test case to test file upload and javascript dialog.
The current issue is the JavaScript dialog cannot be handled after handled FileUpload dialog.
public static void Test()
        {
            Settings settings = new Settings();
            settings.Web.DefaultBrowser = ArtOfTest.WebAii.Core.BrowserType.InternetExplorer;
            settings.UnexpectedDialogAction = UnexpectedDialogAction.DoNotHandle;
 
            Manager manager = new Manager(settings);
            manager.Start();
 
            manager.LaunchNewBrowser();
            manager.ActiveBrowser.NavigateTo("http://localhost:60444/ConduitGenericWebSite/Default.aspx");
             
            FileUploadDialog uploadDialog = new FileUploadDialog(manager.ActiveBrowser,string.Empty, DialogButton.OPEN);
            manager.DialogMonitor.AddDialog(uploadDialog);
 
            // Setup dialog monitoring
            ConfirmDialog confirmDialog = ConfirmDialog.CreateConfirmDialog(manager.ActiveBrowser, DialogButton.OK);
            manager.DialogMonitor.AddDialog(confirmDialog);
 
            ConfirmDialog confirmDialog1 = ConfirmDialog.CreateConfirmDialog(manager.ActiveBrowser, DialogButton.OK);
            manager.DialogMonitor.AddDialog(confirmDialog1);
 
            manager.DialogMonitor.Start();
 
            // File upload test.
            Element fileUpload = manager.ActiveBrowser.Find.ById("FileUpload");
            (new HtmlInputFile(fileUpload)).Upload(@"D:\test.txt", 30000);
 
            Element btnUpload = manager.ActiveBrowser.Find.ById("btnUpload");
            (new HtmlControl(btnUpload)).Click();
             
            // Click 'Button'
            Element confButton = manager.ActiveBrowser.Find.ById("lnkShowConfirmAndAlert");
            (new HtmlControl(confButton)).Click();
 
            // Wait until dialog handled
            confirmDialog.WaitUntilHandled(10000);
            confirmDialog.CurrentState = DialogCurrentState.NotActive;
 
            System.Threading.Thread.Sleep(1000);
        }

But if I change the sequence to handle the javaScript dialog firstly, and then handle File upload dialog, that will be OK.
public static void Test()
        {
            Settings settings = new Settings();
            settings.Web.DefaultBrowser = ArtOfTest.WebAii.Core.BrowserType.InternetExplorer;
            settings.UnexpectedDialogAction = UnexpectedDialogAction.DoNotHandle;
 
            Manager manager = new Manager(settings);
            manager.Start();
 
            manager.LaunchNewBrowser();
            manager.ActiveBrowser.NavigateTo("http://localhost:60444/ConduitGenericWebSite/Default.aspx");
             
            FileUploadDialog uploadDialog = new FileUploadDialog(manager.ActiveBrowser,string.Empty, DialogButton.OPEN);
            manager.DialogMonitor.AddDialog(uploadDialog);
 
            // Setup dialog monitoring
            ConfirmDialog confirmDialog = ConfirmDialog.CreateConfirmDialog(manager.ActiveBrowser, DialogButton.OK);
            manager.DialogMonitor.AddDialog(confirmDialog);
 
            ConfirmDialog confirmDialog1 = ConfirmDialog.CreateConfirmDialog(manager.ActiveBrowser, DialogButton.OK);
            manager.DialogMonitor.AddDialog(confirmDialog1);
 
            manager.DialogMonitor.Start();
             
            // Click 'Button'
            Element confButton = manager.ActiveBrowser.Find.ById("lnkShowConfirmAndAlert");
            (new HtmlControl(confButton)).Click();
 
            // Wait until dialog handled
            confirmDialog.WaitUntilHandled(10000);
            confirmDialog.CurrentState = DialogCurrentState.NotActive;
 
            // File upload test.
            Element fileUpload = manager.ActiveBrowser.Find.ById("FileUpload");
            (new HtmlInputFile(fileUpload)).Upload(@"D:\test.txt", 30000);
 
            Element btnUpload = manager.ActiveBrowser.Find.ById("btnUpload");
            (new HtmlControl(btnUpload)).Click();
 
            System.Threading.Thread.Sleep(1000);
        }

I'm confused. Please help.
Thanks very much.

Regards,
Jeffery
Anthony
Telerik team
 answered on 17 May 2012
1 answer
122 views
hi,

I have a script where 2 dialogs are presented. The first gets clicked as expected but the 2nd highlights the OK button but the click never happens. I've tried to start a 2nd dialog monitor to try and solve, but still no success.

It sits @ browser.Actions.Click(browser.Find.ByAttributes("href=~deleteMember.hg?memberId=")); and doesn't do anything.

Any help is appreciated.


public void QSCDeleteMember()
       {
           foreach (Browser browser in _testBrowsers)
           {
               //Login
               _setup.Login(browser);
 
               //Go to Search Members page
               Menu.GoToMenuOption(browser, MenuOptions.SearchMembers);
 
               //Select a member to delete
               MemberTesting memberTesting = new MemberTesting();
               HtmlTableRow memberRow = memberTesting.SelectMember(browser);
 
               //Get selected member's email address, 4th cell of memberRow
               HtmlAnchor email = memberRow.Cells[3].ChildNodes[0].As<HtmlAnchor>();
               Member deleteMember = new Member();
               deleteMember.Address.EmailAddress = email.InnerText;
 
               //Click 'Edit' button to enter member information page
               browser.Actions.Click(memberRow.Find.ByAttributes("href=~editMember.hg?memberId="));
 
 
               //Select a contact to delete
               HtmlTableCell td = browser.Find.ByAttributes<HtmlTableCell>("class=~selection-row1", "align=left");
               //Start Popup monitor to verify delete of contacts and members
               AlertDialog alertDialog = AlertDialog.CreateAlertDialog(browser, DialogButton.OK);
 
               if (td != null)
               {
                   HtmlTableRow contactRow = td.Parent<HtmlTableRow>();
                   string contactName = td.Find.ByAttributes<HtmlAnchor>("href=~editMemberContact.hg?memberId=").TextContent;
 
                   //Start Popup monitor to verify delete of contacts and members
                    
                   browser.Manager.DialogMonitor.AddDialog(alertDialog);
                   browser.Manager.DialogMonitor.Start();
                   //Delete member contact/address information
                   browser.Actions.Click(contactRow.Find.ByAttributes("href=~deleteMemberContact.hg?memberId="));
                   Assert.IsTrue(memberTesting.VerifyContactDeleted(browser, contactName), "Contact was not deleted");
               }
 
                
                
               //browser.Manager.DialogMonitor.AddDialog(alertDialog);
               //browser.Manager.DialogMonitor.Start();
 
                
 
               browser.Manager.DialogMonitor.Stop();
               browser.WaitUntilReady();
               browser.RefreshDomTree();
 
               AlertDialog alertDialog2 = AlertDialog.CreateAlertDialog(browser, DialogButton.OK);
               browser.Manager.DialogMonitor.AddDialog(alertDialog2);
               browser.Manager.DialogMonitor.Start();
 
               //Delete member, verify they were deleted
               browser.Actions.Click(browser.Find.ByAttributes("href=~deleteMember.hg?memberId="));
               Assert.IsFalse(memberTesting.MemberExists(browser, deleteMember), "Member was not deleted");
 
               //Stop popup monitor, logout
               browser.Manager.DialogMonitor.Stop();
               _setup.Logout(browser);
Plamen
Telerik team
 answered on 17 May 2012
1 answer
140 views
Hi

How do i switch to an iframe where I only have a partial id?,,  e.g. "[STATIC PART]+Random number"

The partial ID is unique so it's not a problem to use it, I just can't get it working. Tried with WaitForFrame method.
Plamen
Telerik team
 answered on 17 May 2012
1 answer
115 views
Is there an easy way to search the Telerik Testing API Reference?
Byron
Telerik team
 answered on 16 May 2012
3 answers
193 views
I have a RadGridView with a column that is RadComboBox:




<telerik:RadGridView x:Name="gridSelectedResources" Style="{StaticResource GridViewSelectedResources}"
                                         BeginningEdit="gridSelectedResources_BeginningEdit"
                                         RowEditEnded="gridSelectedResources_RowEditEnded"
                                         Deleted="gridSelectedResources_Deleted"
                                         EditTriggers="CellClick"
                                         IsReadOnly="{Binding CurrentRole.Editable,Converter={StaticResource ReverseBoolConverter}}">
<telerik:RadGridView.Columns>
<telerik:GridViewDataColumn.CellEditTemplate>
                                    <DataTemplate>
                                        <telerik:RadComboBox
                                            Style="{StaticResource ComboBoxCellEditStyle}"
                                            Loaded="RadComboBox_Loaded"
                                            SelectionChanged="RadComboBox_SelectionChanged"
                                            DisplayMemberPath="Name"
                                            SelectedValuePath="Id"
                                            SelectedValue="{Binding CS.Id, Mode=TwoWay}"
                                            >
                                            <i:Interaction.Behaviors>
                                                <sharedBehaviors:ShowDescriptionBehavior ComboBoxWithDescriptionTemplate="{StaticResource NonEditableComboBoxWithDescription}"/>
<telerik:RadGridView.Columns>
                                            </i:Interaction.Behaviors>
                                        </telerik:RadComboBox>
                                    </DataTemplate>
                                </telerik:GridViewDataColumn.CellEditTemplate>
                            </telerik:GridViewDataColumn>
 </telerik:RadGridView.Columns>
                    </telerik:RadGridView>


Problem: how from tests select a item from RadComboBox?
I try to Cast, but it doesn't work, I try to FindAllByType<RadComboBox> => count is 0.

Do you have some solutions to solve this problem?








Anthony
Telerik team
 answered on 16 May 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?