Skip to content

Instantly share code, notes, and snippets.

View muditlambda's full-sized avatar

Mudit Singh muditlambda

View GitHub Profile
package com.lambdatest;
//TestNG Todo : Sample App
import org.openqa.selenium.By;
import org.openqa.selenium.JavascriptExecutor;
import org.openqa.selenium.Platform;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.remote.DesiredCapabilities;
DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setCapability("geoLocation","US");
DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.SetCapability("geoLocation","US");
$capabilities = array(
"geoLocation" => "US"
)
capabilities = Selenium::WebDriver::Remote::Capabilities.new
capabilities["geoLocation"] = "US"
var capabilities = {
"geoLocation" : "US"
}
capabilities = {
"geoLocation" : "US"
}
using NUnit.Framework;
using OpenQA.Selenium;
using OpenQA.Selenium.Chrome;
IWebDriver webDriver;
webDriver = new ChromeDriver();
using NUnit.Framework;
using OpenQA.Selenium;
using OpenQA.Selenium.Chrome;
using OpenQA.Selenium.Firefox;
using OpenQA.Selenium.IE;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
public class Browser_ops
{
IWebDriver webDriver;
public void Init_Browser()
{
webDriver = new ChromeDriver();
webDriver.Manage().Window.Maximize();
}
………………………………………………