当我尝试在 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)