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
java -jar selenium-server-4.0.0-alpha-6.jar hub |
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
java -jar selenium-server-4.0.0-alpha-6.jar standalone |
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
package com.devtools; | |
import org.apache.commons.codec.binary.Base64; | |
import org.openqa.selenium.By; | |
import org.openqa.selenium.chrome.ChromeDriver; | |
import org.openqa.selenium.devtools.DevTools; | |
import org.openqa.selenium.devtools.network.Network; | |
import org.openqa.selenium.devtools.network.model.Headers; | |
import java.util.HashMap; | |
import java.util.Map; |
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
package com.devtools; | |
import org.openqa.selenium.chrome.ChromeDriver; | |
import org.openqa.selenium.devtools.DevTools; | |
import org.openqa.selenium.devtools.performance.Performance; | |
import org.openqa.selenium.devtools.performance.model.Metric; | |
import java.util.Arrays; | |
import java.util.List; | |
import java.util.stream.Collectors; |
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
package com.devtools; | |
import org.openqa.selenium.chrome.ChromeDriver; | |
import org.openqa.selenium.devtools.DevTools; | |
import org.openqa.selenium.devtools.log.Log; | |
public class CaptureConsoleLogs { | |
private static ChromeDriver driver; | |
private static DevTools chromeDevTools; |
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
package com.devtools; | |
import org.openqa.selenium.chrome.ChromeDriver; | |
import org.openqa.selenium.devtools.DevTools; | |
import org.openqa.selenium.devtools.network.Network; | |
import java.util.Optional; | |
public class CaptureNetworkTraffic { |
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
package com.devtools; | |
import org.openqa.selenium.chrome.ChromeDriver; | |
import org.openqa.selenium.devtools.DevTools; | |
import org.openqa.selenium.devtools.emulation.Emulation; | |
import org.openqa.selenium.devtools.network.model.ConnectionType; | |
import java.util.HashMap; | |
import java.util.Map; | |
import java.util.Optional; |
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
package com.devtools; | |
import org.openqa.selenium.chrome.ChromeDriver; | |
import org.openqa.selenium.devtools.Command; | |
import org.openqa.selenium.devtools.DevTools; | |
import org.openqa.selenium.devtools.deviceorientation.DeviceOrientation; | |
public class SetDeviceOrientation { | |
final static String PROJECT_PATH = System.getProperty("user.dir"); |
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
package com.devtools; | |
import org.openqa.selenium.chrome.ChromeDriver; | |
import org.openqa.selenium.devtools.DevTools; | |
import java.util.HashMap; | |
import java.util.Map; | |
public class SetDeviceMode { | |
final static String PROJECT_PATH = System.getProperty("user.dir"); |
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
package com.devtools; | |
import org.openqa.selenium.chrome.ChromeDriver; | |
import org.openqa.selenium.devtools.Command; | |
import org.openqa.selenium.devtools.DevTools; | |
import org.openqa.selenium.devtools.emulation.Emulation; | |
import java.util.Optional; | |
public class SetUserAgent { |