当我尝试在 Visual Studio 中运行下面的代码时,我收到以下错误:“程序定义了多个入口点。使用 /main 编译以指定包含入口点的类型。”
我试过寻找其他入口点,但我对 c# 没有那么熟悉,并且遇到了麻烦。据我了解,一切都应该是正确的。
namespace Demos
{
using System;
using System.Drawing;
using Applitools;
using Applitools.Selenium;
using OpenQA.Selenium;
using OpenQA.Selenium.Chrome;
public class HelloWorld2
{
static string appName = "Hello World 2 App C#";
// change the value of testName so that it has a unique value on your Eyes system
static string testName = "Hello World 2 v1";
// if you have a dedicated Eyes server, set the value of the variable serverURLstr to your URL …Run Code Online (Sandbox Code Playgroud) 我想知道cypress是否支持多种浏览器类型和版本来实现跨浏览器测试。正如他们在文档 [1] 中提到的,他们确实支持 Chrome 系列浏览器(包括 Electron)和对 Firefox 浏览器的 beta 支持。
但是它们是否支持 Internet Explorer、safari 和其他版本的 chrome 和 Firefox?如果没有,有没有其他方法可以实现这种功能(外部插件或其他东西)?我已经尝试过 Applitools Ultrafast Grid。[2] 但是他们的配置 (APPLITOOLS_API_KEY) 仅针对 windows 和 mac OS 提及。我正在 Ubuntu 操作系统上实施该项目。
并且跨浏览器测试也应该在无头模式下运行。
[1] https://docs.cypress.io/guides/guides/cross-browser-testing.html#Continuous-Integration-Strategies
[2] https://applitools.com/blog/cypress-cross-browser-testing?utm_referrer=https://www.google.com/