简体   繁体   English

如何通过点网运行Selenium API(使用C#)

[英]How to run selenium API with dot-net (using c#)

My company ask mt to write a program for testing without using selenium IDE and firefox. 我的公司要求mt编写一个不使用硒IDE和Firefox进行测试的程序。 How can I use windowform to build a selenium-base program?? 如何使用windowform构建基于硒的程序? I always only import dll.file to Nunit and test.Now how can I just run in my own program? 我总是只将dll.file导入Nunit并进行测试。现在如何在自己的程序中运行?

Here's how I run Selenium Tests 这是我进行硒测试的方法

Download Selenium RC Launch selenium RC like this: java -jar [Your path to]\\Selenium-server.jar -interactive --This will launch a Java console application that is your Selenium Server (RC) 下载Selenium RC像这样启动selenium RC:java -jar [您的路径] \\ Selenium-server.jar -interactive-这将启动一个Java控制台应用程序,它是您的Selenium Server(RC)

Write and run the tests as described in @shenhengbin's article 按照@shenhengbin的文章所述编写并运行测试

There is no executable involved in this, and you can use any testing framework to run the tests. 这没有可执行文件,您可以使用任何测试框架来运行测试。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 C#/dot-NET 的字体渲染库? - Font rendering libraries for C# / dot-NET? 如何使用 C# Dot Net Core 压缩图像大小 - How to compress the image size using C# Dot Net Core PostAsync() 方法在 dot-net 核心窗口服务中不起作用 - PostAsync() method is not working in dot-net core window service 从WCF中通过点网创建的getDataAsync函数获取错误 - Getting an error from a dot-net created function of getDataAsync in WCF 如何通过 dot net / C# 在 Azure VM 上运行 Azure Powershell 脚本 - How to run Azure Powershell scripts on an Azure VMs via dot net / C# 如何从Dot Net Core API / C#应用程序触发cron作业? - How to trigger cron Job from Dot Net Core API/ C# Application? 如何使用 ZD7EFA19FBE7D3972FD5ADB6024Z2 在 ASP.NET Core 6 Web API 中运行存储过程? - How run stored procedure in ASP.NET Core 6 Web API using C#? C#.net Selenium,如何使用sendKeys()插入日期和时间 - C# .net Selenium, how to insert a date and time using sendKeys() 如何使用带有NUnit的Selenium C#两次运行测试项目 - How to run a test project twice using Selenium C# with NUnit 在带有 C# 的点网核心中使用带有 mongo 驱动程序的过滤器时如何忽略大小写 - How to ignore case when using filters with the mongo driver in dot net core with C#
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM