Commit da58093e by 施晓雨

添加项目文件。

parent e74570d5
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
</startup>
</configuration>
\ No newline at end of file
namespace Kivii.Test.WebDriver
{
partial class FrmMain
{
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
/// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows 窗体设计器生成的代码
/// <summary>
/// 设计器支持所需的方法 - 不要修改
/// 使用代码编辑器修改此方法的内容。
/// </summary>
private void InitializeComponent()
{
this.btnOpen = new System.Windows.Forms.Button();
this.btnClose = new System.Windows.Forms.Button();
this.cbxBrowserType = new System.Windows.Forms.ComboBox();
this.label2 = new System.Windows.Forms.Label();
this.btnScreenshot = new System.Windows.Forms.Button();
this.label3 = new System.Windows.Forms.Label();
this.cbxRemote = new System.Windows.Forms.CheckBox();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.cbUseHub = new System.Windows.Forms.CheckBox();
this.lnkVncUrl = new System.Windows.Forms.LinkLabel();
this.panel2 = new System.Windows.Forms.Panel();
this.btnTest = new System.Windows.Forms.Button();
this.groupBox2 = new System.Windows.Forms.GroupBox();
this.btnHandlers = new System.Windows.Forms.Button();
this.label4 = new System.Windows.Forms.Label();
this.label1 = new System.Windows.Forms.Label();
this.btnInjectionScript = new System.Windows.Forms.Button();
this.btnNavigate = new System.Windows.Forms.Button();
this.tbxUrl = new System.Windows.Forms.TextBox();
this.tbxScriptPath = new System.Windows.Forms.TextBox();
this.panel3 = new System.Windows.Forms.Panel();
this.gbMsg = new System.Windows.Forms.GroupBox();
this.rtbMsg = new System.Windows.Forms.RichTextBox();
this.gbScript = new System.Windows.Forms.GroupBox();
this.tabScripts = new System.Windows.Forms.TabControl();
this.tpEngineScript = new System.Windows.Forms.TabPage();
this.rtbEngineScript = new System.Windows.Forms.RichTextBox();
this.panel4 = new System.Windows.Forms.Panel();
this.cbScriptTip = new System.Windows.Forms.ComboBox();
this.label5 = new System.Windows.Forms.Label();
this.btnAutoAppendScript = new System.Windows.Forms.Button();
this.tpWebScript = new System.Windows.Forms.TabPage();
this.rtbWebScript = new System.Windows.Forms.RichTextBox();
this.panel1 = new System.Windows.Forms.Panel();
this.btnClearMsg = new System.Windows.Forms.Button();
this.btnExecuteScript = new System.Windows.Forms.Button();
this.groupBox1.SuspendLayout();
this.panel2.SuspendLayout();
this.groupBox2.SuspendLayout();
this.panel3.SuspendLayout();
this.gbMsg.SuspendLayout();
this.gbScript.SuspendLayout();
this.tabScripts.SuspendLayout();
this.tpEngineScript.SuspendLayout();
this.panel4.SuspendLayout();
this.tpWebScript.SuspendLayout();
this.panel1.SuspendLayout();
this.SuspendLayout();
//
// btnOpen
//
this.btnOpen.Location = new System.Drawing.Point(8, 91);
this.btnOpen.Name = "btnOpen";
this.btnOpen.Size = new System.Drawing.Size(75, 23);
this.btnOpen.TabIndex = 0;
this.btnOpen.Text = "启动";
this.btnOpen.UseVisualStyleBackColor = true;
this.btnOpen.Click += new System.EventHandler(this.btnOpen_Click);
//
// btnClose
//
this.btnClose.Location = new System.Drawing.Point(103, 91);
this.btnClose.Name = "btnClose";
this.btnClose.Size = new System.Drawing.Size(75, 23);
this.btnClose.TabIndex = 0;
this.btnClose.Text = "关闭";
this.btnClose.UseVisualStyleBackColor = true;
this.btnClose.Click += new System.EventHandler(this.btnClose_Click);
//
// cbxBrowserType
//
this.cbxBrowserType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cbxBrowserType.FormattingEnabled = true;
this.cbxBrowserType.Items.AddRange(new object[] {
"Edge",
"Firefox",
"Chrome"});
this.cbxBrowserType.Location = new System.Drawing.Point(69, 22);
this.cbxBrowserType.Name = "cbxBrowserType";
this.cbxBrowserType.Size = new System.Drawing.Size(88, 20);
this.cbxBrowserType.TabIndex = 3;
this.cbxBrowserType.SelectedIndexChanged += new System.EventHandler(this.cbxBrowserType_SelectedIndexChanged);
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(6, 28);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(59, 12);
this.label2.TabIndex = 1;
this.label2.Text = "浏 览 器:";
//
// btnScreenshot
//
this.btnScreenshot.Location = new System.Drawing.Point(194, 91);
this.btnScreenshot.Name = "btnScreenshot";
this.btnScreenshot.Size = new System.Drawing.Size(75, 23);
this.btnScreenshot.TabIndex = 0;
this.btnScreenshot.Text = "截图";
this.btnScreenshot.UseVisualStyleBackColor = true;
this.btnScreenshot.Click += new System.EventHandler(this.btnScreenshot_Click);
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(6, 57);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(59, 12);
this.label3.TabIndex = 1;
this.label3.Text = "远程桌面:";
//
// cbxRemote
//
this.cbxRemote.AutoSize = true;
this.cbxRemote.Location = new System.Drawing.Point(163, 24);
this.cbxRemote.Name = "cbxRemote";
this.cbxRemote.Size = new System.Drawing.Size(48, 16);
this.cbxRemote.TabIndex = 5;
this.cbxRemote.Text = "远程";
this.cbxRemote.UseVisualStyleBackColor = true;
this.cbxRemote.CheckedChanged += new System.EventHandler(this.cbxRemote_CheckedChanged);
//
// groupBox1
//
this.groupBox1.Controls.Add(this.cbUseHub);
this.groupBox1.Controls.Add(this.lnkVncUrl);
this.groupBox1.Controls.Add(this.label2);
this.groupBox1.Controls.Add(this.btnOpen);
this.groupBox1.Controls.Add(this.cbxRemote);
this.groupBox1.Controls.Add(this.btnClose);
this.groupBox1.Controls.Add(this.btnScreenshot);
this.groupBox1.Controls.Add(this.cbxBrowserType);
this.groupBox1.Controls.Add(this.label3);
this.groupBox1.Dock = System.Windows.Forms.DockStyle.Top;
this.groupBox1.Location = new System.Drawing.Point(0, 0);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(287, 130);
this.groupBox1.TabIndex = 8;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "基础操作";
//
// cbUseHub
//
this.cbUseHub.AutoSize = true;
this.cbUseHub.Enabled = false;
this.cbUseHub.Location = new System.Drawing.Point(217, 24);
this.cbUseHub.Name = "cbUseHub";
this.cbUseHub.Size = new System.Drawing.Size(42, 16);
this.cbUseHub.TabIndex = 7;
this.cbUseHub.Text = "HUB";
this.cbUseHub.UseVisualStyleBackColor = true;
this.cbUseHub.CheckedChanged += new System.EventHandler(this.cbxRemote_CheckedChanged);
//
// lnkVncUrl
//
this.lnkVncUrl.AutoSize = true;
this.lnkVncUrl.Enabled = false;
this.lnkVncUrl.Location = new System.Drawing.Point(71, 57);
this.lnkVncUrl.Name = "lnkVncUrl";
this.lnkVncUrl.Size = new System.Drawing.Size(0, 12);
this.lnkVncUrl.TabIndex = 6;
this.lnkVncUrl.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.lnkVncUrl_LinkClicked);
//
// panel2
//
this.panel2.Controls.Add(this.btnTest);
this.panel2.Controls.Add(this.groupBox2);
this.panel2.Controls.Add(this.groupBox1);
this.panel2.Dock = System.Windows.Forms.DockStyle.Left;
this.panel2.Location = new System.Drawing.Point(0, 0);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(287, 687);
this.panel2.TabIndex = 10;
//
// btnTest
//
this.btnTest.Location = new System.Drawing.Point(21, 521);
this.btnTest.Name = "btnTest";
this.btnTest.Size = new System.Drawing.Size(72, 23);
this.btnTest.TabIndex = 11;
this.btnTest.Text = "动态测试";
this.btnTest.UseVisualStyleBackColor = true;
this.btnTest.Click += new System.EventHandler(this.btnTest_Click);
//
// groupBox2
//
this.groupBox2.Controls.Add(this.btnHandlers);
this.groupBox2.Controls.Add(this.label4);
this.groupBox2.Controls.Add(this.label1);
this.groupBox2.Controls.Add(this.btnInjectionScript);
this.groupBox2.Controls.Add(this.btnNavigate);
this.groupBox2.Controls.Add(this.tbxUrl);
this.groupBox2.Controls.Add(this.tbxScriptPath);
this.groupBox2.Dock = System.Windows.Forms.DockStyle.Top;
this.groupBox2.Location = new System.Drawing.Point(0, 130);
this.groupBox2.Name = "groupBox2";
this.groupBox2.Size = new System.Drawing.Size(287, 196);
this.groupBox2.TabIndex = 10;
this.groupBox2.TabStop = false;
this.groupBox2.Text = "原生功能";
//
// btnHandlers
//
this.btnHandlers.Location = new System.Drawing.Point(6, 167);
this.btnHandlers.Name = "btnHandlers";
this.btnHandlers.Size = new System.Drawing.Size(72, 23);
this.btnHandlers.TabIndex = 4;
this.btnHandlers.Text = "输出窗口";
this.btnHandlers.UseVisualStyleBackColor = true;
this.btnHandlers.Click += new System.EventHandler(this.btnHandlers_Click);
//
// label4
//
this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(6, 51);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(53, 12);
this.label4.TabIndex = 3;
this.label4.Text = "注入脚本";
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(6, 23);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(53, 12);
this.label1.TabIndex = 1;
this.label1.Text = "打开网址";
//
// btnInjectionScript
//
this.btnInjectionScript.Location = new System.Drawing.Point(227, 46);
this.btnInjectionScript.Name = "btnInjectionScript";
this.btnInjectionScript.Size = new System.Drawing.Size(49, 23);
this.btnInjectionScript.TabIndex = 0;
this.btnInjectionScript.Text = "注入";
this.btnInjectionScript.UseVisualStyleBackColor = true;
this.btnInjectionScript.Click += new System.EventHandler(this.btnInjectionScript_Click);
//
// btnNavigate
//
this.btnNavigate.Location = new System.Drawing.Point(228, 20);
this.btnNavigate.Name = "btnNavigate";
this.btnNavigate.Size = new System.Drawing.Size(49, 23);
this.btnNavigate.TabIndex = 0;
this.btnNavigate.Text = "打开";
this.btnNavigate.UseVisualStyleBackColor = true;
this.btnNavigate.Click += new System.EventHandler(this.btnNavigate_Click);
//
// tbxUrl
//
this.tbxUrl.Location = new System.Drawing.Point(64, 20);
this.tbxUrl.Name = "tbxUrl";
this.tbxUrl.Size = new System.Drawing.Size(158, 21);
this.tbxUrl.TabIndex = 2;
this.tbxUrl.Text = "http://www.baidu.com";
//
// tbxScriptPath
//
this.tbxScriptPath.Location = new System.Drawing.Point(64, 47);
this.tbxScriptPath.Name = "tbxScriptPath";
this.tbxScriptPath.Size = new System.Drawing.Size(158, 21);
this.tbxScriptPath.TabIndex = 2;
this.tbxScriptPath.Text = "https://k5.kivii.org/codet/selenium.test.js";
//
// panel3
//
this.panel3.Controls.Add(this.gbMsg);
this.panel3.Controls.Add(this.gbScript);
this.panel3.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel3.Location = new System.Drawing.Point(287, 0);
this.panel3.Name = "panel3";
this.panel3.Size = new System.Drawing.Size(817, 687);
this.panel3.TabIndex = 12;
//
// gbMsg
//
this.gbMsg.Controls.Add(this.rtbMsg);
this.gbMsg.Dock = System.Windows.Forms.DockStyle.Fill;
this.gbMsg.Location = new System.Drawing.Point(0, 0);
this.gbMsg.Name = "gbMsg";
this.gbMsg.Size = new System.Drawing.Size(817, 461);
this.gbMsg.TabIndex = 14;
this.gbMsg.TabStop = false;
this.gbMsg.Text = "输出";
//
// rtbMsg
//
this.rtbMsg.Dock = System.Windows.Forms.DockStyle.Fill;
this.rtbMsg.Location = new System.Drawing.Point(3, 17);
this.rtbMsg.Name = "rtbMsg";
this.rtbMsg.ReadOnly = true;
this.rtbMsg.Size = new System.Drawing.Size(811, 441);
this.rtbMsg.TabIndex = 5;
this.rtbMsg.Text = "";
//
// gbScript
//
this.gbScript.Controls.Add(this.tabScripts);
this.gbScript.Controls.Add(this.panel1);
this.gbScript.Dock = System.Windows.Forms.DockStyle.Bottom;
this.gbScript.Location = new System.Drawing.Point(0, 461);
this.gbScript.Name = "gbScript";
this.gbScript.Size = new System.Drawing.Size(817, 226);
this.gbScript.TabIndex = 13;
this.gbScript.TabStop = false;
this.gbScript.Text = "执行Javascript脚本";
//
// tabScripts
//
this.tabScripts.Controls.Add(this.tpEngineScript);
this.tabScripts.Controls.Add(this.tpWebScript);
this.tabScripts.Dock = System.Windows.Forms.DockStyle.Fill;
this.tabScripts.Location = new System.Drawing.Point(3, 17);
this.tabScripts.Name = "tabScripts";
this.tabScripts.SelectedIndex = 0;
this.tabScripts.Size = new System.Drawing.Size(811, 181);
this.tabScripts.TabIndex = 8;
//
// tpEngineScript
//
this.tpEngineScript.Controls.Add(this.rtbEngineScript);
this.tpEngineScript.Controls.Add(this.panel4);
this.tpEngineScript.Location = new System.Drawing.Point(4, 22);
this.tpEngineScript.Name = "tpEngineScript";
this.tpEngineScript.Padding = new System.Windows.Forms.Padding(3);
this.tpEngineScript.Size = new System.Drawing.Size(803, 155);
this.tpEngineScript.TabIndex = 0;
this.tpEngineScript.Tag = "engine";
this.tpEngineScript.Text = "引擎执行(driver为变量名)";
this.tpEngineScript.UseVisualStyleBackColor = true;
//
// rtbEngineScript
//
this.rtbEngineScript.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.rtbEngineScript.Dock = System.Windows.Forms.DockStyle.Fill;
this.rtbEngineScript.Location = new System.Drawing.Point(3, 3);
this.rtbEngineScript.Name = "rtbEngineScript";
this.rtbEngineScript.Size = new System.Drawing.Size(797, 129);
this.rtbEngineScript.TabIndex = 10;
this.rtbEngineScript.Text = "";
//
// panel4
//
this.panel4.Controls.Add(this.cbScriptTip);
this.panel4.Controls.Add(this.label5);
this.panel4.Controls.Add(this.btnAutoAppendScript);
this.panel4.Dock = System.Windows.Forms.DockStyle.Bottom;
this.panel4.Location = new System.Drawing.Point(3, 132);
this.panel4.Name = "panel4";
this.panel4.Size = new System.Drawing.Size(797, 20);
this.panel4.TabIndex = 9;
//
// cbScriptTip
//
this.cbScriptTip.Dock = System.Windows.Forms.DockStyle.Fill;
this.cbScriptTip.FormattingEnabled = true;
this.cbScriptTip.Items.AddRange(new object[] {
"driver.LoadScript(\"\");//在当前页面加载一个JS路径",
"driver.SwitchWindow(\"窗口名称\");//多个窗口时,选择一个窗口打开",
"driver.SwitchNewWindow();//新的浏览器窗口",
"driver.SwitchNewTab();//在浏览器中打开新标签窗口",
"driver.SwitchParentFrame();//选择当前的上一级Frame",
"driver.SwitchSubFrame(\"子窗口名称\")//选择子Frame",
"driver.SwitchSubFrame(子窗口索引数字);//选择子Frame",
"driver.Screenshot(“图片路径”);//保存截图",
"driver.ResetInputState();//重置输入框状态",
"driver.NavigateTo(\"url\");//导航跳转",
"driver.NavigateBack();//页面历史后退",
"driver.NavigateForward();//页面历史向前",
"driver.FullScreen();//浏览器全屏",
"driver.Maximize();//最大化窗口",
"driver.Minimize();//最小化窗口",
"driver.Close();//关闭当前窗口",
"driver.Dispose();//销毁当前程序,释放所有资源",
"driver.ExecuteScript(\"脚本\");//在网页中执行Javascript",
"driver.FindElement(\"id\",\"form1\");//查找元素,第一个参数为id,tagname,classname,tagname,第二个为选择" +
"器",
"driver.FindElements(\"classname\",\"cls1\");//查找元素集合,第一个参数为id,tagname,classname,tagna" +
"me,第二个为选择器",
"driver.Sleep(1000);//睡眠1000毫秒",
""});
this.cbScriptTip.Location = new System.Drawing.Point(59, 0);
this.cbScriptTip.Name = "cbScriptTip";
this.cbScriptTip.Size = new System.Drawing.Size(682, 20);
this.cbScriptTip.TabIndex = 3;
//
// label5
//
this.label5.Dock = System.Windows.Forms.DockStyle.Left;
this.label5.Location = new System.Drawing.Point(0, 0);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(59, 20);
this.label5.TabIndex = 2;
this.label5.Text = "脚本提示:";
this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// btnAutoAppendScript
//
this.btnAutoAppendScript.Dock = System.Windows.Forms.DockStyle.Right;
this.btnAutoAppendScript.Location = new System.Drawing.Point(741, 0);
this.btnAutoAppendScript.Name = "btnAutoAppendScript";
this.btnAutoAppendScript.Size = new System.Drawing.Size(56, 20);
this.btnAutoAppendScript.TabIndex = 0;
this.btnAutoAppendScript.Text = "选择 ↑ ";
this.btnAutoAppendScript.UseVisualStyleBackColor = true;
this.btnAutoAppendScript.Click += new System.EventHandler(this.btnAutoAppendScript_Click);
//
// tpWebScript
//
this.tpWebScript.Controls.Add(this.rtbWebScript);
this.tpWebScript.Location = new System.Drawing.Point(4, 22);
this.tpWebScript.Name = "tpWebScript";
this.tpWebScript.Padding = new System.Windows.Forms.Padding(3);
this.tpWebScript.Size = new System.Drawing.Size(696, 155);
this.tpWebScript.TabIndex = 1;
this.tpWebScript.Tag = "web";
this.tpWebScript.Text = "网页内执行";
this.tpWebScript.UseVisualStyleBackColor = true;
//
// rtbWebScript
//
this.rtbWebScript.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.rtbWebScript.Dock = System.Windows.Forms.DockStyle.Fill;
this.rtbWebScript.Location = new System.Drawing.Point(3, 3);
this.rtbWebScript.Name = "rtbWebScript";
this.rtbWebScript.Size = new System.Drawing.Size(690, 149);
this.rtbWebScript.TabIndex = 9;
this.rtbWebScript.Text = "";
//
// panel1
//
this.panel1.Controls.Add(this.btnClearMsg);
this.panel1.Controls.Add(this.btnExecuteScript);
this.panel1.Dock = System.Windows.Forms.DockStyle.Bottom;
this.panel1.Location = new System.Drawing.Point(3, 198);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(811, 25);
this.panel1.TabIndex = 2;
//
// btnClearMsg
//
this.btnClearMsg.Dock = System.Windows.Forms.DockStyle.Left;
this.btnClearMsg.Location = new System.Drawing.Point(0, 0);
this.btnClearMsg.Name = "btnClearMsg";
this.btnClearMsg.Size = new System.Drawing.Size(75, 25);
this.btnClearMsg.TabIndex = 2;
this.btnClearMsg.Text = "清除输出";
this.btnClearMsg.UseVisualStyleBackColor = true;
this.btnClearMsg.Click += new System.EventHandler(this.btnClearMsg_Click);
//
// btnExecuteScript
//
this.btnExecuteScript.Dock = System.Windows.Forms.DockStyle.Right;
this.btnExecuteScript.Location = new System.Drawing.Point(736, 0);
this.btnExecuteScript.Name = "btnExecuteScript";
this.btnExecuteScript.Size = new System.Drawing.Size(75, 25);
this.btnExecuteScript.TabIndex = 1;
this.btnExecuteScript.Text = "执行脚本";
this.btnExecuteScript.UseVisualStyleBackColor = true;
this.btnExecuteScript.Click += new System.EventHandler(this.btnExecuteScript_Click);
//
// FrmMain
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1104, 687);
this.Controls.Add(this.panel3);
this.Controls.Add(this.panel2);
this.Name = "FrmMain";
this.Text = "代码测试";
this.groupBox1.ResumeLayout(false);
this.groupBox1.PerformLayout();
this.panel2.ResumeLayout(false);
this.groupBox2.ResumeLayout(false);
this.groupBox2.PerformLayout();
this.panel3.ResumeLayout(false);
this.gbMsg.ResumeLayout(false);
this.gbScript.ResumeLayout(false);
this.tabScripts.ResumeLayout(false);
this.tpEngineScript.ResumeLayout(false);
this.panel4.ResumeLayout(false);
this.tpWebScript.ResumeLayout(false);
this.panel1.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.Button btnOpen;
private System.Windows.Forms.Button btnClose;
private System.Windows.Forms.ComboBox cbxBrowserType;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Button btnScreenshot;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.CheckBox cbxRemote;
private System.Windows.Forms.GroupBox groupBox1;
private System.Windows.Forms.Panel panel2;
private System.Windows.Forms.GroupBox groupBox2;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Button btnInjectionScript;
private System.Windows.Forms.Button btnNavigate;
private System.Windows.Forms.TextBox tbxUrl;
private System.Windows.Forms.TextBox tbxScriptPath;
private System.Windows.Forms.Panel panel3;
private System.Windows.Forms.GroupBox gbMsg;
private System.Windows.Forms.RichTextBox rtbMsg;
private System.Windows.Forms.GroupBox gbScript;
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.Button btnExecuteScript;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.Button btnHandlers;
private System.Windows.Forms.TabControl tabScripts;
private System.Windows.Forms.TabPage tpEngineScript;
private System.Windows.Forms.TabPage tpWebScript;
private System.Windows.Forms.RichTextBox rtbWebScript;
private System.Windows.Forms.Button btnClearMsg;
private System.Windows.Forms.RichTextBox rtbEngineScript;
private System.Windows.Forms.Panel panel4;
private System.Windows.Forms.Button btnAutoAppendScript;
private System.Windows.Forms.ComboBox cbScriptTip;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.LinkLabel lnkVncUrl;
private System.Windows.Forms.CheckBox cbUseHub;
private System.Windows.Forms.Button btnTest;
}
}
using Kivii.WebDriver;
using OpenQA.Selenium;
using OpenQA.Selenium.Firefox;
using OpenQA.Selenium.Remote;
using OpenQA.Selenium.Support.Events;
using System;
using System.Threading;
using System.Windows.Forms;
namespace Kivii.Test.WebDriver
{
public partial class FrmMain : Form
{
private Manager _manager=null;
public FrmMain()
{
InitializeComponent();
}
private void appendMsg(string msg)
{
rtbMsg.AppendText($"{msg}{Environment.NewLine}");
}
#region 事件
private void addListener()
{
if (_manager == null) return;
_manager.OnException += manager_OnException;
_manager.OnWindowChanged += manager_OnWindowChanged;
_manager.ElementClicked += EventDriver_ElementClicked;
_manager.ElementClicking += EventDriver_ElementClicking;
_manager.ElementValueChanging += EventDriver_ElementValueChanging;
_manager.ElementValueChanged += EventDriver_ElementValueChanged;
_manager.ExceptionThrown += EventDriver_ExceptionThrown;
_manager.FindElementCompleted += EventDriver_FindElementCompleted;
_manager.FindingElement += EventDriver_FindingElement;
_manager.GetShadowRootCompleted += EventDriver_GetShadowRootCompleted;
_manager.GettingShadowRoot += EventDriver_GettingShadowRoot;
_manager.Navigated += EventDriver_Navigated;
_manager.NavigatedBack += EventDriver_NavigatedBack;
_manager.NavigatedForward += EventDriver_NavigatedForward;
_manager.Navigating += EventDriver_Navigating;
_manager.NavigatingBack += EventDriver_NavigatingBack;
_manager.NavigatingForward += EventDriver_NavigatingForward;
_manager.ScriptExecuted += EventDriver_ScriptExecuted;
_manager.ScriptExecuting += EventDriver_ScriptExecuting;
}
private void manager_OnWindowChanged(object sender, Window e)
{
gbMsg.Text = $"输出(窗口Handle={e.Handle},Title={e.Title})";
}
private void manager_OnException(object sender, Exception e)
{
appendMsg($"Exception:{DateTime.Now}{Environment.NewLine}{e.Message}{Environment.NewLine}{e.StackTrace}");
}
private void EventDriver_ScriptExecuting(object sender, WebDriverScriptEventArgs e)
{
appendMsg($"EventDriver_ScriptExecuting:{Environment.NewLine}{e.Script}");
}
private void EventDriver_ScriptExecuted(object sender, WebDriverScriptEventArgs e)
{
appendMsg($"EventDriver_ScriptExecuted:{Environment.NewLine}{e.Script}");
}
private void EventDriver_NavigatingForward(object sender, WebDriverNavigationEventArgs e)
{
appendMsg($"EventDriver_NavigatingForward:{Environment.NewLine}{e.Url}");
}
private void EventDriver_NavigatingBack(object sender, WebDriverNavigationEventArgs e)
{
appendMsg($"EventDriver_NavigatingBack:{Environment.NewLine}{e.Url}");
}
private void EventDriver_Navigating(object sender, WebDriverNavigationEventArgs e)
{
appendMsg($"EventDriver_Navigating:{Environment.NewLine}{e.Url}");
}
private void EventDriver_NavigatedForward(object sender, WebDriverNavigationEventArgs e)
{
appendMsg($"EventDriver_NavigatedForward:{Environment.NewLine}{e.Url}");
}
private void EventDriver_NavigatedBack(object sender, WebDriverNavigationEventArgs e)
{
appendMsg($"EventDriver_NavigatedBack:{Environment.NewLine}{e.Url}");
}
private void EventDriver_Navigated(object sender, WebDriverNavigationEventArgs e)
{
appendMsg($"EventDriver_Navigated:{Environment.NewLine}{e.Url}");
}
private void EventDriver_GettingShadowRoot(object sender, GetShadowRootEventArgs e)
{
appendMsg($"EventDriver_GettingShadowRoot:{Environment.NewLine}{e}");
}
private void EventDriver_GetShadowRootCompleted(object sender, GetShadowRootEventArgs e)
{
appendMsg($"EventDriver_GetShadowRootCompleted:{Environment.NewLine}{e}");
}
private void EventDriver_FindingElement(object sender, FindElementEventArgs e)
{
appendMsg($"EventDriver_FindingElement:{Environment.NewLine}{e}");
}
private void EventDriver_FindElementCompleted(object sender, FindElementEventArgs e)
{
appendMsg($"EventDriver_FindElementCompleted:{Environment.NewLine}{e}");
}
private void EventDriver_ExceptionThrown(object sender, WebDriverExceptionEventArgs e)
{
appendMsg($"EventDriver_ExceptionThrown:{Environment.NewLine}{e}");
}
private void EventDriver_ElementValueChanged(object sender, WebElementValueEventArgs e)
{
appendMsg($"EventDriver_ElementValueChanged:{Environment.NewLine}{e}");
}
private void EventDriver_ElementValueChanging(object sender, WebElementValueEventArgs e)
{
appendMsg($"EventDriver_ElementValueChanging:{Environment.NewLine}{e}");
}
private void EventDriver_ElementClicking(object sender, WebElementEventArgs e)
{
appendMsg($"EventDriver_ElementClicking:{Environment.NewLine}{e}");
}
private void EventDriver_ElementClicked(object sender, WebElementEventArgs e)
{
appendMsg($"EventDriver_ElementClicked:{Environment.NewLine}{e}");
}
#endregion
#region 交互事件
private void btnOpen_Click(object sender, EventArgs e)
{
if (_manager != null) return;
rtbMsg.Clear();
_manager = new Manager();
var serviceUrl = string.Empty;
if (cbxRemote.Checked)
{
if (cbUseHub.Checked)
{
serviceUrl = "http://hub.selenium.kivii.org/";
}
else
{
serviceUrl = $"http://driver.{cbxBrowserType.Text}.selenium.kivii.org";
}
}
_manager.Initialize(cbxBrowserType.Text, serviceUrl);
addListener();
}
private void btnClose_Click(object sender, EventArgs e)
{
_manager?.Dispose();
_manager = null;
}
private void btnScreenshot_Click(object sender, EventArgs e)
{
//if (_driver == null) return;
SaveFileDialog sfd=new SaveFileDialog();
sfd.Filter = "图片文件|*.jpg";
if (sfd.ShowDialog() != DialogResult.OK) return;
_manager?.Screenshot(sfd.FileName);
}
private void btnInjectionScript_Click(object sender, EventArgs e)
{
_manager?.LoadScript(tbxScriptPath.Text);
}
private void cbxRemote_CheckedChanged(object sender, EventArgs e)
{
lnkVncUrl.Enabled = cbxRemote.Checked;
cbUseHub.Enabled=cbxRemote.Checked;
cbxBrowserType_SelectedIndexChanged(null, null);
}
private void cbxBrowserType_SelectedIndexChanged(object sender, EventArgs e)
{
if (!cbxRemote.Checked)
{
lnkVncUrl.Text= null;
return;
}
if (cbUseHub.Checked)
{
lnkVncUrl.Text = $"http://hub.selenium.kivii.org";
}
else
{
if (string.IsNullOrEmpty(cbxBrowserType.Text))
{
lnkVncUrl.Text = null;
}
else
{
lnkVncUrl.Text = $"http://viewer.{cbxBrowserType.Text}.selenium.kivii.org";
}
}
}
private void lnkVncUrl_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
if (cbUseHub.Checked)
{
System.Diagnostics.Process.Start($"{lnkVncUrl.Text}");
}
else
{
System.Diagnostics.Process.Start($"{lnkVncUrl.Text}/?autoconnect=1&resize=scale&password=secret");
}
}
private void btnNavigate_Click(object sender, EventArgs e)
{
_manager?.NavigateTo(tbxUrl.Text);
}
private void btnExecuteScript_Click(object sender, EventArgs e)
{
if (tabScripts.SelectedTab.Tag.ToString() == "engine")//网页内执行
{
var result = _manager.Execute(rtbEngineScript.Text);
rtbEngineScript.Clear();
appendMsg($"Result:{result}");
}
else if (tabScripts.SelectedTab.Tag.ToString() == "web")
{
var result = _manager?.ExecuteScript(rtbWebScript.Text);
rtbWebScript.Clear();
appendMsg($"Result:{result}");
}
}
private void btnHandlers_Click(object sender, EventArgs e)
{
foreach (var handler in _manager.AllWindowHandles)
{
appendMsg($"Handler Name:{handler}");
}
}
private void btnClearMsg_Click(object sender, EventArgs e)
{
rtbMsg.Clear();
}
private void btnAutoAppendScript_Click(object sender, EventArgs e)
{
rtbEngineScript.AppendText($"{cbScriptTip.Text}{Environment.NewLine}");
}
#endregion
private void btnTest_Click(object sender, EventArgs e)
{
RemoteWebDriver driver = null;
try
{
driver = new RemoteWebDriver(new FirefoxOptions().ToCapabilities());
//System.Diagnostics.Process.Start($"http://viewer.firefox.selenium.kivii.org/?autoconnect=1&resize=scale&password=secret");
//driver.Navigate().GoToUrl("https://www.baidu.com");
driver.ExecuteScript("console.log(1);");
driver.ExecuteScript("document.getElementByTagName('head');");
driver.ExecuteScript("alert('1')", "");
}
catch (Exception ex)
{
appendMsg($"Ex:{Environment.NewLine}{ex.Message}");
}
driver.Quit();
}
}
}
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{03CD7C9E-1022-4D2F-A710-24E7F90C7C79}</ProjectGuid>
<OutputType>WinExe</OutputType>
<RootNamespace>Kivii.Test.WebDriver</RootNamespace>
<AssemblyName>Kivii.Test.WebDriver</AssemblyName>
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<Deterministic>true</Deterministic>
<NuGetPackageImportStamp>
</NuGetPackageImportStamp>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="Kivii.WebDriver.V4.7, Version=4.15.2023.11000, Culture=neutral, processorArchitecture=MSIL">
<HintPath>packages\Kivii.WebDriver.4.15.2023.11000\lib\net47\Kivii.WebDriver.V4.7.dll</HintPath>
</Reference>
<Reference Include="Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<HintPath>packages\Newtonsoft.Json.13.0.1\lib\net45\Newtonsoft.Json.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
<HintPath>packages\System.Drawing.Common.7.0.0\lib\net462\System.Drawing.Common.dll</HintPath>
</Reference>
<Reference Include="System.Data" />
<Reference Include="System.Drawing" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
<Reference Include="WebDriver, Version=4.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>packages\Selenium.WebDriver.4.15.0\lib\netstandard2.0\WebDriver.dll</HintPath>
</Reference>
<Reference Include="WebDriver.Support, Version=4.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>packages\Selenium.Support.4.15.0\lib\netstandard2.0\WebDriver.Support.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="FrmMain.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="FrmMain.Designer.cs">
<DependentUpon>FrmMain.cs</DependentUpon>
</Compile>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<EmbeddedResource Include="FrmMain.resx">
<DependentUpon>FrmMain.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
<SubType>Designer</SubType>
</EmbeddedResource>
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<None Include="packages.config" />
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
<Compile Include="Properties\Settings.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Settings.settings</DependentUpon>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
</Compile>
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Import Project="packages\Selenium.WebDriver.4.15.0\build\Selenium.WebDriver.targets" Condition="Exists('packages\Selenium.WebDriver.4.15.0\build\Selenium.WebDriver.targets')" />
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
<PropertyGroup>
<ErrorText>这台计算机上缺少此项目引用的 NuGet 程序包。使用“NuGet 程序包还原”可下载这些程序包。有关更多信息,请参见 http://go.microsoft.com/fwlink/?LinkID=322105。缺少的文件是 {0}。</ErrorText>
</PropertyGroup>
<Error Condition="!Exists('packages\Selenium.WebDriver.4.15.0\build\Selenium.WebDriver.targets')" Text="$([System.String]::Format('$(ErrorText)', 'packages\Selenium.WebDriver.4.15.0\build\Selenium.WebDriver.targets'))" />
</Target>
</Project>
\ No newline at end of file

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.6.33723.286
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Kivii.Test.WebDriver", "Kivii.Test.WebDriver.csproj", "{03CD7C9E-1022-4D2F-A710-24E7F90C7C79}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{03CD7C9E-1022-4D2F-A710-24E7F90C7C79}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{03CD7C9E-1022-4D2F-A710-24E7F90C7C79}.Debug|Any CPU.Build.0 = Debug|Any CPU
{03CD7C9E-1022-4D2F-A710-24E7F90C7C79}.Release|Any CPU.ActiveCfg = Release|Any CPU
{03CD7C9E-1022-4D2F-A710-24E7F90C7C79}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {48C0B066-9E4C-4DFB-B69C-BBA31690E31F}
EndGlobalSection
EndGlobal
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Kivii.Test.WebDriver
{
internal static class Program
{
/// <summary>
/// 应用程序的主入口点。
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new FrmMain());
}
}
}
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// 有关程序集的一般信息由以下
// 控制。更改这些特性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("Kivii.Test.WebDriver")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Kivii.Test.WebDriver")]
[assembly: AssemblyCopyright("Copyright © 2023")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// 将 ComVisible 设置为 false 会使此程序集中的类型
//对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型
//请将此类型的 ComVisible 特性设置为 true。
[assembly: ComVisible(false)]
// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
[assembly: Guid("03cd7c9e-1022-4d2f-a710-24e7f90c7c79")]
// 程序集的版本信息由下列四个值组成:
//
// 主版本
// 次版本
// 生成号
// 修订号
//
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
//通过使用 "*",如下所示:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码由工具生成。
// 运行时版本: 4.0.30319.42000
//
// 对此文件的更改可能导致不正确的行为,如果
// 重新生成代码,则所做更改将丢失。
// </auto-generated>
//------------------------------------------------------------------------------
namespace Kivii.Test.WebDriver.Properties
{
/// <summary>
/// 强类型资源类,用于查找本地化字符串等。
/// </summary>
// 此类是由 StronglyTypedResourceBuilder
// 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。
// 若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen
// (以 /str 作为命令选项),或重新生成 VS 项目。
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class Resources
{
private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal Resources()
{
}
/// <summary>
/// 返回此类使用的缓存 ResourceManager 实例。
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Resources.ResourceManager ResourceManager
{
get
{
if ((resourceMan == null))
{
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Kivii.Test.WebDriver.Properties.Resources", typeof(Resources).Assembly);
resourceMan = temp;
}
return resourceMan;
}
}
/// <summary>
/// 重写当前线程的 CurrentUICulture 属性,对
/// 使用此强类型资源类的所有资源查找执行重写。
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture
{
get
{
return resourceCulture;
}
set
{
resourceCulture = value;
}
}
}
}
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>
\ No newline at end of file
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace Kivii.Test.WebDriver.Properties
{
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")]
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
{
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
public static Settings Default
{
get
{
return defaultInstance;
}
}
}
}
<?xml version='1.0' encoding='utf-8'?>
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)">
<Profiles>
<Profile Name="(Default)" />
</Profiles>
<Settings />
</SettingsFile>
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Kivii.WebDriver" version="4.15.2023.11000" targetFramework="net472" />
<package id="Newtonsoft.Json" version="13.0.1" targetFramework="net472" />
<package id="Selenium.Support" version="4.15.0" targetFramework="net472" />
<package id="Selenium.WebDriver" version="4.15.0" targetFramework="net472" />
<package id="System.Drawing.Common" version="7.0.0" targetFramework="net472" />
<package id="Selenium.WebDriver.ChromeDriver" version="119.0.6045.10500" targetFramework="net472" />
<package id="Selenium.WebDriver.GeckoDriver.Win64" version="0.33.0" targetFramework="net472" />
<package id="Selenium.WebDriver.IEDriver" version="4.14.0" targetFramework="net472" />
<package id="Selenium.WebDriver.MSEdgeDriver" version="118.0.2088.41" targetFramework="net472" />
</packages>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment