Skip to content

Instantly share code, notes, and snippets.

View shapovalovei's full-sized avatar
🎯
Focusing on TrueAutomation.OI

Eugene Shapovalov shapovalovei

🎯
Focusing on TrueAutomation.OI
View GitHub Profile
Unable to create session from {
"desiredCapabilities": {
"browserName": "",
"server:CONFIG_UUID": "548d063c-04c8-4487-b16a-850fe6ef53e1",
"taRemoteUrl": "http:\u002f\u002flocalhost:4444\u002fwd\u002fhub"
},
"capabilities": {
"desiredCapabilities": {
"browserName": "",
/Library/Java/JavaVirtualMachines/jdk-9.0.4.jdk/Contents/Home/bin/java -ea -Didea.test.cyclic.buffer.size=1048576 "-javaagent:/Applications/IntelliJ IDEA.app/Contents/lib/idea_rt.jar=64752:/Applications/IntelliJ IDEA.app/Contents/bin" -Dfile.encoding=UTF-8 -classpath "/Applications/IntelliJ IDEA.app/Contents/lib/idea_rt.jar:/Applications/IntelliJ IDEA.app/Contents/plugins/testng/lib/testng-plugin.jar:/Users/eugeneshapovalov/Projects/facebook-tests/target/test-classes:/Users/eugeneshapovalov/.m2/repository/org/seleniumhq/selenium/selenium-java/3.11.0/selenium-java-3.11.0.jar:/Users/eugeneshapovalov/.m2/repository/org/seleniumhq/selenium/selenium-api/3.11.0/selenium-api-3.11.0.jar:/Users/eugeneshapovalov/.m2/repository/org/seleniumhq/selenium/selenium-chrome-driver/3.11.0/selenium-chrome-driver-3.11.0.jar:/Users/eugeneshapovalov/.m2/repository/org/seleniumhq/selenium/selenium-edge-driver/3.11.0/selenium-edge-driver-3.11.0.jar:/Users/eugeneshapovalov/.m2/repository/org/seleniumhq/selenium/selenium-firefox-driver
import io.trueautomation.client.driver.TrueAutomationDriver;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeOptions;
import org.testng.annotations.AfterTest;
import org.testng.annotations.BeforeTest;
import org.testng.annotations.Test;
import java.net.MalformedURLException;
import java.util.concurrent.TimeUnit;
trueautomation:proxy:index:detail 98 HTML:
<!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=11" />
<title>QuickTickets Dashboard</title>
<style type="text/css">html, body {height:100%;margin:0;}</style>
<link rel="shortcut icon" type="image/vnd.microsoft.icon" href="./VAADIN/themes/dashboard/favicon.ico" />
<link rel="icon" type="image/vnd.microsoft.icon" href="./VAADIN/themes/dashboard/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no" />
<meta name="apple-mobile-web-app-capable" content="yes" />
package utils;
import io.appium.java_client.remote.AndroidMobileCapabilityType;
import io.appium.java_client.remote.IOSMobileCapabilityType;
import io.appium.java_client.remote.MobileCapabilityType;
import io.appium.java_client.service.local.AppiumDriverLocalService;
import io.appium.java_client.service.local.AppiumServiceBuilder;
import io.appium.java_client.service.local.flags.AndroidServerFlag;
import io.appium.java_client.service.local.flags.GeneralServerFlag;
import io.appium.java_client.service.local.flags.IOSServerFlag;
package utils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.openqa.selenium.net.UrlChecker;
import java.io.*;
import java.net.InetAddress;
import java.net.URL;
Capybara.default_driver = :selenium
Capybara.register_driver :selenium do |app|
Capybara::Selenium::Driver.new(app, browser: :chrome)
end
Capybara.save_path = 'reports/screenshots'
After do |scenario|
# Do something after each scenario.
[Appium] Had trouble ending session 9b40413c-30c6-466d-99a7-a0c82f9bd0c0: Android bootstrap socket crashed: Error: This socket has been ended by the other party
[MJSONWP] Encountered internal error running command: Error: Android bootstrap socket crashed: Error: This socket has been ended by the other party
at Socket.<anonymous> (../../lib/bootstrap.js:87:21)
at emitOne (events.js:96:13)
at Socket.emit (events.js:188:7)
at Socket.writeAfterFIN [as write] (net.js:297:8)
at ../../lib/bootstrap.js:112:25
at F (/usr/local/lib/node_modules/appium/node_modules/core-js/library/modules/$.export.js:30:36)
at AndroidBootstrap.sendCommand$ (../../lib/bootstrap.js:108:18)
at tryCatch (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
05-23 15:09:30.100 862 3711 D SSRM:n : SIOP:: AP = 480, PST = 473, CUR = 300, LCD = 49
05-23 15:09:30.310 26264 26264 I chromium: [INFO:CONSOLE(1)] "Failed to execute 'write' on 'Document': It isn't possible to write into a document from an asynchronously-loaded external script unless it is explicitly opened.", source: https://ad.doubleclick.net/adj/N8029.197812NSO.CODESRV/B10650198.142138973;dcadv=;sz=1x2;ord=240978078319.73773 (1)
05-23 15:09:30.310 26264 26264 I chromium: [INFO:CONSOLE(145)] "Failed to execute 'write' on 'Document': It isn't possible to write into a document from an asynchronously-loaded external script unless it is explicitly opened.", source: https://ad.doubleclick.net/adj/N8029.197812NSO.CODESRV/B10650198.142138973;dcadv=;sz=1x2;ord=240978078319.73773 (145)
05-23 15:09:30.540 26264 26264 I chromium: [INFO:CONSOLE(1)] "Uncaught SecurityError: Failed to read the 'contentDocument' property from 'HTMLIFrameElement': Blocked a frame with origin "https://mstage.pepboys.com" from accessing