Advertisement
Mourasman

Untitled

Jan 20th, 2012
232
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.23 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. using System.Text.RegularExpressions;
  5. using System.Drawing;
  6. using System.Threading;
  7. using WinForms = System.Windows.Forms;
  8.  
  9. using Ranorex;
  10. using Ranorex.Core;
  11. using Ranorex.Core.Testing;
  12.  
  13. namespace Dialogs
  14. {
  15.     public partial class Recording1
  16.     {
  17.         /// <summary>
  18.         /// This method gets called right after the recording has been started.
  19.         /// It can be used to execute recording specific initialization code.
  20.         /// </summary>
  21.         private void Init()
  22.         {
  23.             // Your recording specific initialization code goes here.
  24.         }
  25.  
  26.         public void Open_Browser1()
  27.         {
  28.             Report.Log(ReportLevel.Info, "Website", "Opening web site 'C:\\Dialogs\\TestWoInstr.html' with browser 'IE' in normal mode.", new RecordItemIndex(-1));
  29.             Host.Local.OpenBrowser(@"C:\TestPage\TestInstr.html", "firefox", "", true, false);
  30.         }
  31.        
  32.         public void GetMaxChars()
  33.            
  34.         {
  35.             FlexElement button = "/dom[@page='TestInstr.html']/body/flexobject/element/container/text[@type='TextInput']";
  36.             var label = button.GetPropertyValue("maxChars");
  37.         }
  38.     }    
  39.    
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement