Microsoft Web Browser Automation using C#

浏览器自动化操作(Web Browser Automation)(一) 前言:之前靠网上的大佬带,学了一点也算是爬虫的一个东西——浏览器自动化,现在算是整理总结或者是回报社会吧x 准备:① Python 3.6            ② selenium库            ③ google chrome driver (感谢 https://blog.csdn.net/dreamstone_xiaoqw/article/details/78970616 的... 阅读详情

codeproject的一篇文章,没有用webbrowser,而是直接使用axWebBrowser。

http://www.codeproject.com/KB/cs/mshtml_automation.aspx?fid=26186&df=90&mpp=25&noise=3&sort=Position&view=Quick&select=2208064

 

文章中介绍了aximp的含义:

If you are not using the Visual Studio .NET IDE; use Windows Forms ActiveX Control Importer (Aximp.exe) to convert type definitions in a COM type library for an ActiveX control into a Windows Forms control. For instance: to generate the interop DLL's for the ActiveX browser component using the command line run aximp ../system32/shdocvw.dll relative to your system32 path. Compilation of a form that uses the AxSHDocVw.AxWebBrowser class would be as follows: csc /r:SHDocVw.dll,AxSHDocVw.dll YourForm.cs.

 

 

原文如下:

google_example

 

Introduction

The Microsoft Web Browser COM control adds browsing, document, viewing, and downloading capabilities to your applications. Parsing and rendering of HTML documents in the WebBrowser control is handled by the MSHTML component which is an Active Document Dynamic HTML (DHTML) Object Model hosting ActiveX Controls and script languages. The WebBrowser control merely acts as a container for the MSHTML component and implements navigations and related functions. MSHTML can be automated using IDispatch and IConnectionPointContainer-style automation interfaces. These interfaces enable a host to automate MSHTML through the object model.

Note

If you are not using the Visual Studio .NET IDE; use Windows Forms ActiveX Control Importer (Aximp.exe) to convert type definitions in a COM type library for an ActiveX control into a Windows Forms control. For instance: to generate the interop DLL's for the ActiveX browser component using the command line run aximp ../system32/shdocvw.dll relative to your system32 path. Compilation of a form that uses the AxSHDocVw.AxWebBrowser class would be as follows: csc /r:SHDocVw.dll,AxSHDocVw.dll YourForm.cs.

Using the code

Simple Automation scenario:

In order to automate this task, first add a Microsoft Web Browser object to an empty C# Windows application. In the Visual Studio .NET IDE, this is done by using the "Customize Toolbox..." context menu (on the Toolbox), pick "Microsoft Web Browser" from the COM components list. This will add an "Explorer" control in the "General" section of the Toolbox.

Collapse Copy Code
//
// navigate to google on Form load
//
private void Form1_Load(object sender, System.EventArgs e)
{
    object loc = "<A href="http://www.google.com/">http://www.google.com/</A>";
    object null_obj_str = "";
    System.Object null_obj = 0;
    this.axWebBrowser1.Navigate2(ref loc , ref null_obj, 
          ref null_obj, ref null_obj_str, ref null_obj_str);
}

Next open the solution explorer and add a reference to the Microsoft HTML Object Library (MSHTML) from the COM components list and implement the following code.

Collapse Copy Code
//
// Global variable Task used to prevent recursive code executions.
// 

using mshtml;

private int Task = 1; // global

private void axWebBrowser1_DocumentComplete(object sender, 
         AxSHDocVw.DWebBrowserEvents2_DocumentCompleteEvent e)

{
switch(Task)
    {
        case 1:

            HTMLDocument myDoc = new HTMLDocumentClass();
            myDoc = (HTMLDocument) axWebBrowser1.Document;

            // a quick look at the google html source reveals: 
            // <INPUT maxLength="256" size="55" name="q">
            //
            HTMLInputElement otxtSearchBox = 
               (HTMLInputElement) myDoc.all.item("q", 0);

            otxtSearchBox.value = "intel corp";

            // google html source for the I'm Feeling Lucky Button:
            // <INPUT type=submit value="I'm Feeling Lucky" name=btnI>
            //
            HTMLInputElement btnSearch = 
               (HTMLInputElement) myDoc.all.item("btnI", 0);
            btnSearch.click();

            Task++;
            break;

        case 2:

            // continuation of automated tasks...
            break;
    }
}

浏览器自动化操作(Web Browser Automation)(二) 上一节讲了浏览器自动化操作的两个基本要点——定位和操作。然后我们其中产生了一个问题: 为什么手动叉掉新弹出来的窗口并不会对后续的操作没有影响? 那么这一节就来说说窗口的事情。 实际上,当我们启动chromedriver的时候,就已经有一个窗口了,这个窗口就是运行下面的代码之后弹出的第一个标签页: from selenium import webdriver x=webdriver.C... 阅读详情

相关推荐

基于Playwright与C#的企业级Web自动化项目架构与实战

Web自动化测试与RPA(机器人流程自动化)是提升企业运营效率、解放人力的关键技术。其核心原理是通过程序模拟用户操作,自动执行网页端的重复性任务。在技术选型上,Playwright作为现代浏览器自动化框架,以其强大的跨浏览器支持、智能等待机制和出色的稳定性,成为处理复杂动态网页的理想选择。结合C#这一强类型语言在企业级开发中的稳健性和丰富的.NET生态,能够构建出高可靠、易维护的自动化解决方案。这种技术组合尤其适用于需要长期稳定运行、对错误容忍度低的业务流程自动化场景,例如文中提到的政务网站社保申报、数据查

dengwan3818的博客 699

Python + Selenium,分分钟搭建 Web 自动化测试框架!

(以下内容出自实验楼课程——「Python 自动化测试实战」,欢迎大家来实验楼边敲代码边练习!

m0_70618214的博客 2294

Web自动化测试工具选型指南:Selenium、Playwright、Cypress、Robot Framework深度对比

Web自动化测试是软件工程中提升回归测试效率、保障软件质量的关键实践,其核心原理是通过脚本模拟用户操作,自动执行页面流程验证。该技术能有效替代重复性人工测试,将人力资源释放到更具创造性的探索性测试中,其技术价值体现在提升测试覆盖率、加速反馈周期和降低人为错误。在实际应用场景中,针对不同技术栈、浏览器兼容性和项目需求,需选择合适的工具。例如,Selenium凭借其庞大的生态和全面的浏览器支持,成为行业基石;而Playwright则以其革命性的自动等待机制和出色的稳定性,成为现代Web应用测试的高效选择。本文聚

weixin_30352191的博客 394

webbrowser控件属性介绍

该组件是一个浏览器组件,可以显示一个指定地址的网页、设置网页打开时的主页以及对网页进行相关的操作,同时也可以对HTML文件进行剪切、复制、粘贴、删除等操作。该 组件在Internet组件页中。 1.属性 (1)AddressBar属性 设置是否显示地址栏,在TWebBrowser中没有用。 语法: property AddressBar: WordBool; (2)Busy属性 确

wayaoqiang的专栏 9890

Web自动化实战:从Gulp到Selenium与云端测试的完整指南

Web自动化是现代软件开发中提升效率与保障质量的关键技术,其核心原理是通过脚本或工具模拟用户操作,自动执行浏览器任务。这项技术的价值在于实现测试与构建流程的一致性和可重复性,显著提升持续集成与部署(CI/CD)的可靠性。在实际应用场景中,Web自动化主要分为构建流程自动化(如使用Gulp进行代码检查与转换)和浏览器操作自动化(如利用Selenium进行端到端测试)。通过结合本地任务运行器与云端测试服务,开发者可以构建覆盖多浏览器、多设备的健壮测试体系。本文聚焦于Selenium、Gulp等热词工具,深入探讨

Liusuzhi19610221的博客 1276

C#使用WebBrowser控件实现百度自动搜索功能

通过本章的学习,我们掌握了WebBrowser控件在网页元素操作与交互方面的核心方法,包括:获取HTML元素(设置输入框内容(、JavaScript注入)。模拟按钮点击(、JavaScript函数调用)。处理动态加载内容和异步交互的策略。这些操作构成了WebBrowser控件自动化网页交互的基础能力,为后续章节中构建完整的自动化流程打下了坚实基础。对于复杂的交互逻辑(如等待异步加载、监听事件等),可将自定义 JS 脚本注入页面。

weixin_42146230的博客 881

使用 Playwright 自动化 Microsoft Edge WebView2:通过 CDP 连接与多语言测试实战

本文以当前 Playwright 仓库中的官方文档 [webview2.md](https://link.gitcode.com/i/ff5918bf4b6998088e6206f6b9a88132) 为主体,系统讲解如何让 Playwright 驱动内嵌在 Windows 桌面应用中的 Microsoft Edge WebView2 控件:从在宿主应用中开启 Chrome DevTools Pr

gitblog_00611的博客 491

华为Atlas 300I推理卡驱动安装避坑指南:不同安装方式的选择与优化

本文详细解析华为Atlas 300I推理卡驱动安装的三种主流方式(.run、.rpm和源码编译),提供关键环境检查步骤、安装流程优化建议及常见问题解决方案,帮助开发者高效完成芯片推理卡部署并规避典型安装陷阱。

q9w8e7r6t5的博客 439

Playwright C 入门实战:从 dotnet new 到跑通首个端到端测试

本篇指南基于 Playwright 仓库中的官方 C# 安装文档 [intro-csharp.md](https://link.gitcode.com/i/95e5465481e5c0110656f2472f51465f) 展开,带你完整走通「创建 .NET 测试项目 → 安装 Playwright 依赖 → 下载浏览器 → 编写并运行首个端到端测试」的全流程,并深入解析 MSTest、NUnit

gitblog_00512的博客 247

在Windows 11上用VirtualBox搞定WRF-Hydro 5.2.0:一个水文模型小白的Ubuntu 22.04虚拟机避坑实录

本文详细记录了在Windows 11上使用VirtualBox和Ubuntu 22.04虚拟机成功编译安装WRF-Hydro 5.2.0水文模型的全过程。从虚拟环境配置、依赖库安装到环境变量设置,作者分享了针对Linux新手的实用避坑技巧和关键命令,帮助科研人员高效完成水文模型的环境搭建。

weixin_30733003的博客 357

实战对比:VINS和ORBSLAM3在无人机避障中的表现(含实测数据)

本文通过实战测试,深度对比了VINS和ORBSLAM3两种主流视觉SLAM算法在无人机避障中的表现。测试聚焦于光照变化、动态遮挡和快速运动三大挑战,提供了详细的实测数据与性能分析。结果表明,VINS在计算效率和实时性上占优,而ORBSLAM3在定位精度和地图管理方面更稳健,为不同应用场景下的工程选型提供了清晰依据。

醉三国 631

Playwright .NET 库模式实战:从控制台项目、Web-First 断言到跨平台 Driver 打包

本篇技术指南围绕 Playwright 官方文档中的 .NET「Library(库)」用法展开,讲解如何在不依赖 MSTest、NUnit、xUnit 等测试框架基类的情况下,以 `Microsoft.Playwright` NuGet 包为核心编写独立自动化脚本。读完本文,你将掌握:完整的 .NET 控制台项目搭建与浏览器安装流程、页面导航与截图的最小可运行示例、`headless`/`slow

gitblog_00594的博客 976

Zemax实战:5步搞定牛顿望远镜光学设计(附球差优化技巧)

本文详细介绍了在Zemax OpticStudio中构建高精度牛顿望远镜光学系统的5步实战流程,包括初始参数设置、球差优化、折叠镜与遮光面配置等关键步骤。特别针对球差问题,提供了将主镜圆锥系数设为-1的优化方案,有效消除轴上弥散斑。通过3D视图和MTF分析验证,该系统可实现接近衍射极限的成像质量,适合天文观测等应用场景。

x8y9z0的博客 935

Playwright for .NET 测试运行器实战:MSTest / NUnit / xUnit 基类、并行执行与 .runsettings 配置全解析

本文基于 Playwright 官方文档 [test-runners-csharp.md](https://link.gitcode.com/i/fd4d6617a04986a4f3dba01072050746) 展开,讲解 Playwright for .NET 如何与 MSTest、NUnit、xUnit、xUnit v3 四大测试框架集成:从基类继承模型(`PageTest` / `Cont

gitblog_00636的博客 683

减法平均优化器(SABO)算法详解:从数学原理到工程应用

减法平均优化器(SABO)是一种基于数学概念的新型元启发式优化算法,由Trojanovský和Dehghani于2023年提出。该算法通过v-减法运算和平均值计算实现搜索优化,核心创新是采用目标函数值差异符号引导搜索方向。SABO具有参数少、结构简单、收敛快等特点,在高维复杂问题中表现优异。算法通过种群平均值保持多样性,利用符号函数确保搜索方向改进,自然平衡探索与开发。MATLAB实现显示其计算复杂度为O(N²·D),与主流群体智能算法相当。SABO不依赖生物或物理隐喻,数学基础坚实,在工程优化和机器学习领

qq_42212808的博客 170

华为OD机试双机位C卷-部门人力分配 (Py/Java/C/C++/Js/Go)

华为OD机试(机考)双机位C卷 【部门人力分配】,提供C语言、Java、C++、Python、Go、JavaScript源码实现,并提供完整思路讲解,以及在线OJ模拟做题。华为OD机试 - 部门人力分配。

qq_45776114的博客 1880

Playwright .NET API 测试实战:用 C 与 APIRequestContext 打通 Web API 与 E2E 测试

Playwright for .NET 允许你不打开任何页面、不执行浏览器内 JavaScript,直接用 C# 发起 HTTP(S) 请求来测试应用的服务端 REST API。本文围绕 [API 测试官方指南](https://link.gitcode.com/i/4ffb9678770902729d802b9c693a49a1)展开,系统讲解如何使用 `APIRequestContext` 编

gitblog_00312的博客 845

大学计算 - 方程求解 实训答案 第3关

【代码】大学计算 - 方程求解 实训答案 第3关。

2403_89314916的博客 115

Playwright C 测试编写指南:自动等待、Locator 操作、Expect 断言与测试隔离

本篇指南基于 Playwright 官方文档 [Writing tests (C#)](https://link.gitcode.com/i/3fcfecc932759e3469c9b2771efb5b69),系统讲解如何用 C# 编写 Playwright 端到端测试。读完后你将掌握四件事:如何用 MSTest、NUnit、xUnit 或 xUnit v3 的基类写出第一个测试;如何利用自动等待

gitblog_00363的博客 304

YOLO11改进策略【独家融合改进】| RCSOSA + SPD + WFU

SPD-Conv是一种新的 CNN 构建模块,用于替代传统 CNN 架构中使用的步长卷积(strided convolution)和池化(pooling)层,它由空间到深度(Space-to-depth,SPD)层和非步长卷积(non - strided convolution)层组成。WFU模块通过小波变换的频率分解与跨尺度融合机制,解决了传统上采样过程中的混叠和细节丢失问题,实现了高效、高保真的面部细节重建。

Limiiiing的博客 461

深度学习工具包 DeepLearningToolbox

深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain's apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath('DeepLearnToolbox'));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand('state',0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W'); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand('state',0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = 'sigm';%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, 'Too big error');```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand('state',0)sae = saesetup([784 100]);sae.ae{1}.activation_function = 'sigm';sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)')% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = 'sigm';nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, 'Too big error');```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x',28,28,60000))/255;test_x = double(reshape(test_x',28,28,10000))/255;train_y = double(train_y');test_y = double(test_y');%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you'll get around 1.2% errorrand('state',0)cnn.layers = { struct('type', 'i') %input layer struct('type', 'c', 'outputmaps', 6, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %sub sampling layer struct('type', 'c', 'outputmaps', 12, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, 'Too big error');```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand('state',0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, 'Too big error');%% ex2 neural net with L2 weight decayrand('state',0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex3 neural net with dropoutrand('state',0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex4 neural net with sigmoid activation functionrand('state',0)nn = nnsetup([784 100 10]);nn.activation_function = 'sigm'; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex5 plotting functionalityrand('state',0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = 'softmax'; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand('state',0)nn = nnsetup([784 20 10]); nn.output = 'softmax'; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');```[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rasmusbergpalm/deeplearntoolbox/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

Playwright 页面对象模型(Page Object Model)实践:封装 Page 与 Locator 构建可维护的测试套件

大型 Web 测试套件如何兼顾“易编写”和“易维护”?Playwright 官方推荐的组织方式之一是**页面对象模型(Page Object Model, POM)**:用一类对象封装一个页面的元素定位与常见操作,把分散在各处用例里的选择器收敛到一处。本文基于 Playwright 官方文档 [Page object models](https://link.gitcode.com/i/c05d2

gitblog_00816的博客 274

假人有限元模型

假人模型,车辆碰撞假人有限元模型,适合做乘员安全的研究者利用

Playwright 测试生成实战:从 codegen 命令到定位器生成与模拟环境的完整指南

Playwright 内置的测试生成器(Test Generator / Codegen)让你在真实浏览器中操作网页时自动录制并生成可用的测试代码,是快速起步 Web 测试的官方推荐方式。本篇指南覆盖 Playwright 官方文档《Generating tests》(`docs/src/codegen-intro.md`)的全部核心内容:四种语言下运行 `codegen` 命令、录制操作与断言、

gitblog_00396的博客 836

数学建模模型总结

这是本人在两年内准备参加数学建模竞赛搜集到的模型资料,已经经过了本人的筛选和整理,希望能够对准备参加数学建模竞赛的学弟学妹们提供一些帮助!

老版QQ原生表情gif动态

这是老版的QQ表情,不过全是动态的的,Windows照片查看器是不会动的,可以右击用浏览器打开查看,再说一遍是老版的,只是分享给宁愿用老版也要动态的人。

Web UI自动化测试方案:从框架选型到CI集成的完整实践

软件测试是保障软件质量的关键环节,其核心原理是通过预设的验证点来确保软件行为符合预期。在众多测试类型中,自动化测试通过脚本执行替代人工操作,能显著提升回归测试效率、保障交付质量并降低长期成本。对于现代Web应用,UI自动化测试是验证端到端业务流程和用户体验的重要手段。其技术价值在于构建快速、稳定且可维护的测试资产,以应对频繁的迭代需求。典型的应用场景包括核心业务流程验证、多浏览器兼容性检查以及持续集成流水线中的质量门禁。本文聚焦于构建一个可持续的Web UI自动化测试方案,深入探讨了以Playwright为

weixin_33724059的博客 333

Playwright 如何连接 Selenium Grid 4 在远程节点上启动 Chrome/Edge 测试?

如果你有现成的 Selenium Grid 集群,希望 Playwright 的测试不在本机启动浏览器,而是由远程 Grid 节点上的 Google Chrome 或 Microsoft Edge 执行,可以设置 `SELENIUM_REMOTE_URL` 环境变量让 Playwright 直连 Grid Hub。这是 Playwright 文档中明确支持的集成方式,但属于 **experimen

gitblog_00826的博客 467

Playwright 多语言支持详解:JavaScript、Python、Java、.NET 四套 SDK 如何共享同一核心,以及如何选择测试语言

Playwright 官方支持 JavaScript/TypeScript、Python、Java 和 .NET 四种语言,它们共享同一套底层实现:所有浏览器自动化核心能力在每种语言中均可用,差异主要集中在各自的测试框架集成与工具生态上。本篇基于仓库文档 [docs/src/languages.md](https://link.gitcode.com/i/54a082cc37a2f969777a8

gitblog_00789的博客 262

Playwright .NET 实战指南:使用 dotnet test 运行与调试 C 浏览器自动化测试

Playwright 的 .NET 版本将浏览器自动化能力嵌入到标准 .NET 测试生态中,测试通过 `dotnet test` 命令即可在 MSTest、NUnit、xUnit 及 xUnit v3 等框架下运行,并默认以 headless 方式在 Chromium、Firefox 和 WebKit 三大浏览器引擎上执行。本篇技术指南完整覆盖 Playwright for .NET 的测试运行方

gitblog_00983的博客 654
上一篇: Programming the MSHTML Web Browser Control with C++
下一篇: WebBrowser页面与WinForm交互技巧
sclxf
博客等级 码龄25年 38粉丝 114原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值