Skip to content

Instantly share code, notes, and snippets.

View manoj9788's full-sized avatar
🏠
Working from home

Manoj Kumar manoj9788

🏠
Working from home
View GitHub Profile
const { chromium } = require('playwright');
(async () => {
const browser = await chromium.launch();
const context = await browser.newContext();
const page = await context.newPage();
page.on('pageerror', console.log);
await page.goto('https://www.gov.uk/');

Manoj is a Lead Technical Specialist and Evangelist at Applitools, a member of the Steering committee and a contributor for Selenium project. He is an open-source enthusiast and has contributed to different libraries that shall help test apps faster with libraries like Selenium, ngWebDriver, Protractor, NemoJs and Serenity. He is an avid Accessibility enthusiast.

describe("Checkbox", () => {
describe("a11y", () => {
beforeEach(() => {
cy.visit("/component/th-checkbox/example/5");
});
describe("aria-label", () => {
describe("without an aria-label attribute specified", () => {
it("has an aria-label attribute identical to the checkbox's with-label attribute", () => {
import selenium from 'selenium-webdriver';
import AxeBuilder from 'axe-webdriverjs';
const Key = selenium.Key;
import util from 'util';
let driver;
describe('Radio button demo', () => {
beforeEach(done => {
sds
namespace Applitools.Selenium.Tests
{
using System;
using System.Drawing;
using OpenQA.Selenium;
using OpenQA.Selenium.Firefox;
using OpenQA.Selenium.Chrome;
using NUnit.Framework;
using OpenQA.Selenium.Remote;
package com.applitools.seleniumJavaExamples;
import com.applitools.eyes.rendering.Eyes;
import com.applitools.eyes.rendering.Target;
import com.applitools.eyes.visualGridClient.model.RenderingConfiguration;
import com.applitools.eyes.visualGridClient.model.TestResultSummary;
import com.applitools.eyes.visualGridClient.services.VisualGridManager;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
package com.applitools.eyes.appium;
import com.applitools.eyes.LogHandler;
import com.applitools.eyes.ProxySettings;
import com.applitools.eyes.StdoutLogHandler;
import io.appium.java_client.MobileBy;
import io.appium.java_client.MobileElement;
import io.appium.java_client.Setting;
import io.appium.java_client.TouchAction;
import io.appium.java_client.android.AndroidDriver;
const assert = require('assert');
const {Builder, By, promise, until} = require('selenium-webdriver');
const {Eyes, Target} = require('eyes.selenium');
promise.USE_PROMISE_MANAGER = false;
describe('Frame Test', function() {
let driver;
let eyes;
beforeEach(async function() {
package com.applitools.seleniumJavaExamples;
import com.applitools.eyes.BatchInfo;
import com.applitools.eyes.MatchLevel;
import com.applitools.eyes.RectangleSize;
import com.applitools.eyes.selenium.Eyes;
import com.applitools.eyes.selenium.StitchMode;
import org.openqa.selenium.WebDriver;