Skip to content

Instantly share code, notes, and snippets.

View harsha509's full-sized avatar
🎯
Focusing

Sri Harsha harsha509

🎯
Focusing
View GitHub Profile
import org.openqa.selenium.*;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
public class TestSelenium {
public static void main(String[] args) throws InterruptedException {
WebDriver driver = new ChromeDriver();
driver.get("https://www.surveymonkey.com/r/CHP86NN");
Thread.sleep(2000);
sriharsha@EPINHYDW017A wdio-bidi-tests % npm run wdio-lb
> wdio-lb
> wdio run ./wdio.lambdatest.conf.js
Execution of 1 workers started at 2023-09-20T15:05:28.380Z
2023-09-20T15:05:28.408Z INFO @wdio/cli:launcher: Run onPrepare hook
2023-09-20T15:05:28.410Z INFO @wdio/cli:launcher: Run onWorkerStart hook
sriharsha@EPINHYDW017A wdio-bidi-tests % npm run wdio
> wdio
> wdio run ./wdio.conf.js
Execution of 1 workers started at 2023-09-14T09:44:46.788Z
2023-09-14T09:44:46.794Z INFO @wdio/cli:launcher: Run onPrepare hook
2023-09-14T09:44:46.794Z INFO @wdio/utils: Setting up browser driver for: chrome@stable
2023-08-04T08:11:25.486Z INFO @wdio/local-runner: Run worker command: run
2023-08-04T08:11:30.335Z INFO webdriver: Initiate new session using the WebDriver protocol
2023-08-04T08:11:30.348Z INFO webdriver: Downloading Chromedriver v115.0.5790.171
2023-08-04T08:11:30.996Z ERROR @wdio/runner: Error: Download failed: server returned code 404. URL: https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.171/win64/chromedriver-win64.zip
at file:///C:/Users/sriharsha.sureshbabu/Desktop/repo_check/expertautomation/node_modules/@puppeteer/browsers/src/httpUtil.ts:96:23
at ClientRequest.requestCallback (file:///C:/Users/sriharsha.sureshbabu/Desktop/repo_check/expertautomation/node_modules/@puppeteer/browsers/src/httpUtil.ts:66:7)
at Object.onceWrapper (node:events:629:26)
at ClientRequest.emit (node:events:514:28)
at ClientRequest.emit (node:domain:489:12)
at HTTPParser.parserOnIncomingClient (node:_http_client:700:27)
<svg id="eeuJw8U21bV1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 600 600" shape-rendering="geometricPrecision" text-rendering="geometricPrecision"><g transform="translate(19.991013 0)"><ellipse rx="180" ry="180" transform="translate(280.008982 320.019785)" fill="#fff" stroke="#166bff" stroke-width="14"/><path d="M230.300596,110.171584h60" transform="matrix(.69016 0.723657-.723657 0.69016 339.381731-84.384601)" fill="#fff" stroke="#166bff" stroke-width="14" stroke-linecap="round"/><path id="eeuJw8U21bV5" d="M230.300596,110.171584h80" transform="translate(9.708386-10.139586)" fill="#fff" stroke="#166bff" stroke-width="14" stroke-linecap="round"/><path id="eeuJw8U21bV6" d="M265.150298,229.743893v-140" transform="translate(14.858683 90.275892)" fill="#fff" stroke="#166bff" stroke-width="14" stroke-linecap="round"/></g><script><![CDATA[
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof __SVGATOR_DEFINE__&&__SVG
Details:
Appium Version: 2.0.0-beta.55
Java Client Version: 8.3.0
Selenium-Api-version: 4.8.1
TestNG: 7.7.0
java-client-8.3.0.jar & netty-common-4.1.87.Final.jar:4.1.87.Final
java.lang.UnsupportedOperationException: Reflective setAccessible(true) disabled
at io.netty.util.internal.ReflectionUtil.trySetAccessible(ReflectionUtil.java:31) ~[netty-common-4.1.87.Final.jar:4.1.87.Final]
2022-12-28T06:23:07.475Z INFO @wdio/local-runner: Run worker command: run
2022-12-28T06:23:07.835Z INFO webdriver: Initiate new session using the WebDriver protocol
2022-12-28T06:23:07.871Z INFO webdriver: [POST] http://127.0.0.1:4723/session
2022-12-28T06:23:07.871Z INFO webdriver: DATA {
capabilities: {
alwaysMatch: {
platformName: 'Android',
'appium:platformVersion': '11',
'appium:deviceName': 'emulator-5554',
'appium:automationName': 'UiAutomator2',
yarn run v1.22.19
warning package.json: No license field
$ wdio run ./src/conf/wdio.android.conf.js --suite login
Execution of 1 workers started at 2022-12-28T06:10:27.073Z
In `onPrepare` hook:
{
config: {
rootDir: './src/conf',
describe('devtools Test', () => {
it('emulate geo location', async () => {
const coordinates = {
latitude: 35.689487,
longitude: 139.691706,
accuracy: 100,
};
await browser.cdp('Emulation', 'setGeolocationOverride', coordinates)
await browser.url('https://kawasaki-india.com/dealer-locator/');
await browser.pause(10000)
05:27:49.022 DEBUG: Create : /builds/cardiac-svcs/sv-qa-automation/expertautomation/.sonar/_tmp
05:27:49.023 INFO: User cache: /builds/cardiac-svcs/sv-qa-automation/expertautomation/.sonar/cache
05:27:49.029 INFO: Load/download plugins
05:27:49.030 INFO: Load plugins index
05:27:49.630 DEBUG: GET 200 http://10.20.71.26:9000/api/plugins/installed | time=600ms
05:27:49.679 INFO: Load plugins index (done) | time=649ms
05:27:49.681 DEBUG: Download plugin 'abap' to '/builds/cardiac-svcs/sv-qa-automation/expertautomation/.sonar/_tmp/fileCache9662879007610850422.tmp'
05:27:50.276 DEBUG: GET 200 http://10.20.71.26:9000/api/plugins/download?plugin=abap&acceptCompressions=pack200 | time=594ms
05:28:19.767 DEBUG: Download plugin 'csharp' to '/builds/cardiac-svcs/sv-qa-automation/expertautomation/.sonar/_tmp/fileCache11389361800080737763.tmp'
05:28:20.360 DEBUG: GET 200 http://10.20.71.26:9000/api/plugins/download?plugin=csharp&acceptCompressions=pack200 | time=593ms