This file contains 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
void canContinueWithAuthCredentials() { | |
try (Network network = new Network(driver)) { | |
network.addIntercept(new AddInterceptParameters(InterceptPhase.AUTH_REQUIRED)); | |
network.onAuthRequired( | |
responseDetails -> | |
network.continueWithAuth( | |
responseDetails.getRequest().getRequestId(), | |
new UsernameAndPassword("admin", "admin"))); | |
driver.get("https://the-internet.herokuapp.com/basic_auth"); | |
} |
This file contains 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 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); |
This file contains 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
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 |
This file contains 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
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 |
This file contains 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
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) |
This file contains 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
<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 |
This file contains 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
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] |
This file contains 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
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', |
This file contains 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
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', |
This file contains 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
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) |
NewerOlder