Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Text;
- using System.Text.RegularExpressions;
- using System.Drawing;
- using System.Threading;
- using WinForms = System.Windows.Forms;
- using Ranorex;
- using Ranorex.Core;
- using Ranorex.Core.Testing;
- namespace Dialogs
- {
- public partial class Recording1
- {
- /// <summary>
- /// This method gets called right after the recording has been started.
- /// It can be used to execute recording specific initialization code.
- /// </summary>
- private void Init()
- {
- // Your recording specific initialization code goes here.
- }
- public void Open_Browser1()
- {
- Report.Log(ReportLevel.Info, "Website", "Opening web site 'C:\\Dialogs\\TestWoInstr.html' with browser 'IE' in normal mode.", new RecordItemIndex(-1));
- Host.Local.OpenBrowser(@"C:\TestPage\TestInstr.html", "firefox", "", true, false);
- }
- public void GetMaxChars()
- {
- FlexElement button = "/dom[@page='TestInstr.html']/body/flexobject/element/container/text[@type='TextInput']";
- var label = button.GetPropertyValue("maxChars");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement