Skip to content

Instantly share code, notes, and snippets.

Clay Martin InstyleVII

Block or report user

Report or block InstyleVII

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:3e3bdcb8f677bf594d747f7a9c99383b
python wpt run edge webdriver\tests\actions\key.py --no-manifest --log-wptreport report.json --no-manifest-update --webdriver-arg=--verbose --timeout-multiplier=20
0:05.83 INFO Using 1 client processes
0:11.04 SUITE_START: web-platform-test - running 1 tests
0:11.04 INFO Running reftest tests
0:11.04 INFO No reftest tests to run
0:11.04 INFO Running wdspec tests
0:11.04 INFO Starting runner
0:11.61 pid:5864 Full command: C:\Windows\system32\MicrosoftWebDriver.exe --port=4444 --verbose
pid:5864 [14:14:39.705] - Starting server...
0:11.61 pid:5864 [14:14:39.705] - Listening on http://127.0.0.1:4444/
View gist:313c383ef9644d81d4567cb822c93f3f
{
"capabilities": {
"firstMatch": [ {
"browserName": "chrome",
"goog:chromeOptions": {
"w3c": true
}
} ]
},
"desiredCapabilities": {
View webdriver.cs
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
@InstyleVII
InstyleVII / test.cs
Created Feb 6, 2018
Element Click Clarification
View test.cs
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
View gist:9c0511e3b098e2cdd9cfcee046538583
var edgeService = EdgeDriverService.CreateDefaultService();
edgeService.UseVerboseLogging = true;
var edgeDriver = new EdgeDriver(edgeService);
edgeDriver.Navigate().GoToUrl("http://ie-snap/scratchtests/mustjab/webdriver/test/missedJsReference.html");
edgeDriver.SwitchTo().Frame("inner");
IWebElement edgeWebDriverElement = edgeDriver.FindElement(By.Id("oneline"));
edgeDriver.SwitchTo().DefaultContent();
IWebElement edgeScriptElement = (IWebElement)((IJavaScriptExecutor)edgeDriver).ExecuteScript("return frames[0].document.getElementById('oneline');");
View gist:34c03f307f9a7df29d1feb0a58baf699
var driver = new FirefoxDriver(new FirefoxOptions());
driver.Url = "www.bing.com";
Thread.Sleep(2000);
driver.Quit();
View gist:e3a686151f565499d05c7f663ea934c5
Install-Package : Unable to find package 'Selenium.WebDriver'
At line:1 char:1
+ Install-Package Selenium.WebDriver
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], Exception
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
View webdriver.cs
using OpenQA.Selenium;
using OpenQA.Selenium.Edge;
using System;
namespace EdgeDriverTests
{
public class Program
{
/*
* This assumes you have added MicrosoftWebDriver.exe to your System Path.
View gist:ec652da3a81c2504fc8c
// Parent Controller
angular.module('CsWebApp.PayYourBill', [])
.controller('PayYourBillController', [
'$scope', '$http', function ($scope, $http) {
$scope.test = 'true';
}
]);
// Child Controller
angular.module('CsWebApp.PayYourBill.Form', [])
You can’t perform that action at this time.