This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'selenium-webdriver' | |
require 'test-unit' | |
class EcommerceTests < Test::Unit::TestCase | |
def setup | |
@my_driver = Selenium::WebDriver.for :firefox | |
@url = "https://ecommerce-playground.lambdatest.io/" | |
#get url |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'selenium-webdriver' | |
require 'test-unit' | |
class EcommerceTests < Test::Unit::TestCase | |
def setup | |
username= "{LAMBDATEST_USERNAME}" | |
accessToken= "{LAMBDATEST_ACCESS_KEY}" | |
gridUrl = "hub.lambdatest.com/wd/hub" | |
capabilities = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import io.appium.java_client.AppiumDriver; | |
import io.appium.java_client.MobileBy; | |
import io.appium.java_client.MobileElement; | |
import org.openqa.selenium.JavascriptExecutor; | |
import org.openqa.selenium.remote.DesiredCapabilities; | |
import org.openqa.selenium.remote.RemoteWebDriver; | |
import java.net.MalformedURLException; | |
import java.net.URL; | |
public class vanilla_android { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import io.appium.java_client.AppiumDriver; | |
import io.appium.java_client.MobileBy; | |
import io.appium.java_client.MobileElement; | |
import io.appium.java_client.ios.IOSDriver; | |
import org.openqa.selenium.JavascriptExecutor; | |
import org.openqa.selenium.remote.DesiredCapabilities; | |
import org.openqa.selenium.remote.RemoteWebDriver; | |
import java.net.MalformedURLException; | |
import java.net.URL; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// components/sample.js | |
import React from "react" | |
import PropTypes from "prop-types" | |
import { Helmet } from "react-helmet" | |
import { useStaticQueryParameters, graphql } from "gatsby" | |
const sample = ({ description, lang, meta, title }) => { | |
const { site } = useStaticQueryParameters( | |
graphql` | |
query { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// components/__tests__/sample.js | |
import React from "react" | |
import { render } from "@testing-library/react" | |
import { useStaticQuery } from "gatsby" | |
import Helmet from "react-helmet" | |
import Sample from "../sample" | |
describe("Sample component", () => { | |
beforeAll(() => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from "react" | |
import { Link, graphql } from "gatsby" | |
import Bio from "../components/bio" | |
import Layout from "../components/layout" | |
import Sample from "../components/sample" | |
const BlogIndexDetails = ({ data, location }) => { | |
const siteTitle = data.site.siteMetadata?.title || `Title` | |
const posts = data.allMarkdownRemark.nodes |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from "react" | |
import { render } from "@testing-library/react" | |
import { useStaticQuery } from "gatsby" | |
import BlogIndexDetails from "../index" | |
describe("BlogIndex component", () => { | |
beforeEach(() => { | |
useStaticQuery.mockReturnValue({ | |
site: { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"lambdatest_auth": { | |
"username": "your-lambdatest-username", | |
"access_key": "your-lambdatest-token" | |
}, | |
"browsers": [ | |
{ | |
"browser": "Chrome", | |
"platform": "Windows 10", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using NUnit.Framework; | |
using OpenQA.Selenium; | |
using OpenQA.Selenium.Remote; | |
using System; | |
using System.Threading; | |
namespace SeleniumTutorial | |
{ | |
public class SeleniumTests | |
{ |
OlderNewer