Skip to content

Instantly share code, notes, and snippets.

@InstyleVII
Created February 6, 2018 17:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save InstyleVII/9091e65da9e5f90d0ada1c71935611f2 to your computer and use it in GitHub Desktop.
Save InstyleVII/9091e65da9e5f90d0ada1c71935611f2 to your computer and use it in GitHub Desktop.
Element Click Clarification
using OpenQA.Selenium.Chrome;
using OpenQA.Selenium.Edge;
using OpenQA.Selenium.Firefox;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace WebDriverReducer
{
class Program
{
static void Main(string[] args)
{
var driver = new EdgeDriver();
driver.Url = "file:///C:/Users/clmartin/Code/test.html";
driver.FindElementById("click").Click();
Console.ReadLine();
driver.Quit();
}
}
}
<button id="click" style="height: 50000px; width: 50000px;" onclick="alert('hey');">Click Me</button>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment