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 pytest | |
| from selenium import webdriver | |
| import sys | |
| from selenium.webdriver.common.by import By | |
| from selenium.common.exceptions import StaleElementReferenceException | |
| ch_capabilities = { | |
| 'LT:Options' : { | |
| "user" : "<username>", | |
| "accessKey" : "<accesskey>", |
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
| ch_capabilities = { | |
| 'LT:Options': { | |
| "user": "<username>", | |
| "accessKey": "<accesskey>", | |
| "build": "StaleElementReferenceException Test on Chrome", | |
| "name": "StaleElementReferenceException Test on Chrome", | |
| "platformName": "Windows 10" | |
| }, | |
| "browserName": "Chrome", | |
| "browserVersion": "102.0", |
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 pytest | |
| from selenium import webdriver | |
| import sys | |
| from selenium.webdriver.common.by import By | |
| from selenium.common.exceptions import NoSuchElementException | |
| # Desired Capabilities according to SELENIUM 4 | |
| ff_capabilities = { | |
| 'LT:Options' : { | |
| "user" : "<username>", |
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 pytest | |
| from selenium import webdriver | |
| import sys | |
| from selenium.webdriver.common.by import By | |
| from selenium.common.exceptions import NoSuchElementException | |
| # Desired Capabilities according to SELENIUM 4 | |
| ch_capabilities = { | |
| 'LT:Options' : { |
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 pytest | |
| from selenium import webdriver | |
| import sys | |
| from selenium.webdriver.common.by import By | |
| from selenium.common.exceptions import StaleElementReferenceException | |
| ch_capabilities = { | |
| 'LT:Options' : { | |
| "user" : "<username>", |
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
| #/step_definistions/ecommerce_steps.rb | |
| Given(/^Ecommerce webpage Login Page loads$/) do | |
| $browser.goto "https://ecommerce-playground.lambdatest.io/index.php?route=account/login" | |
| $user_session = LoginPage.new | |
| end | |
| Then(/^Ecommerce Login Link is present loaded$/) do | |
| assert($user_session.username_textbox.name, "email") | |
| assert($user_session.password_textbox.name, "password") | |
| end |
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
| #/support/env.rb | |
| require 'rubygems' | |
| require 'watir' | |
| Before do |scenario| | |
| $browser = Watir::Browser.new :firefox | |
| $browser.driver.manage.window.maximize | |
| end | |
| After do |scenario| |
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_json_appsscript.js | |
| // https://gist.github.com/allenyllee/c764c86ed722417948fc256b7a5077c4 | |
| // | |
| // Changelog: | |
| // (Oct. 16 2019) tag: allenyllee-20191016 | |
| // 1. Fixed google script error: urlfetchapp - service invoked too many times https://stackoverflow.com/questions/10598179/google-apps-script-urlfetchapp-service-invoked-too-many-times | |
| // (Jul. 16 2018) tag: allenyllee-20180716 | |
| // 1. Fixed the issue "If you try to query /arrayA[k]/arrayB[n]/arrayC[m]/.../member, you will always get /arrayA[k]/arrayB[k]/arrayC[k]/.../member." | |
| // (Nov. 30 2017) tag: allenyllee-20171130 | |
| // 1. Add the ability to query array elements by using xpath like "/array[n]/member" where "n" is array index |
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
| image: node:10.15.0 | |
| test: &test | |
| name: Install and Test | |
| script: | |
| - cd my-tools | |
| - npm install | |
| - npm test | |
| - npm pack | |
| artifacts: # defining the artifacts to be passed to each future step. | |
| # - dist/** |
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
| image: atlassian/default-image:2 | |
| pipelines: | |
| custom: | |
| deploy-to-production: | |
| - step: | |
| name: Deploy to Production | |
| deployment: production | |
| script: |