How to use JsonException class of org.openqa.selenium.json package

Best Selenium code snippet using org.openqa.selenium.json.JsonException

JsonException org.openqa.selenium.json.JsonException

The JsonException occured when any action/operation return values are not being able to parse by selenium client.

Example

It is an example code of JsonException which has been thrown by selenium client if the response data is not in Json format.

copy
1private static Object asAtomLocatorParameter(Object object) { 2 if (object instanceof WebElement) { 3 return object; 4 } 5 if (!(object instanceof By)) { 6 throw new IllegalArgumentException("Expected locator to be either an element or a By: " + object); 7 } 8 assertLocatorCanBeSerialized(object); 9 Map < String, Object > raw = JSON.toType(JSON.toJson(object), MAP_TYPE); 10 if (!(raw.get("using") instanceof String)) { 11 throw new JsonException("Expected JSON encoded form of locator to have a 'using' field. " + raw); 12 } 13 if (!raw.containsKey("value")) { 14 throw new JsonException("Expected JSON encoded form of locator to have a 'value' field: " + raw); 15 } 16 return ImmutableMap.of((String) raw.get("using"), raw.get("value")); 17}

Solutions

  • Verify requests made by selenium client
  • Add try,catch block to handle the error
  • Update Selenium version to latest

JsonException org.openqa.selenium.json.JsonException

The JsonException occured when any action/operation return values are not being able to parse by selenium client.

Example

It is an example code of JsonException which has been thrown by selenium client if the response data is not in Json format.

copy
1private static Object asAtomLocatorParameter(Object object) { 2 if (object instanceof WebElement) { 3 return object; 4 } 5 if (!(object instanceof By)) { 6 throw new IllegalArgumentException("Expected locator to be either an element or a By: " + object); 7 } 8 assertLocatorCanBeSerialized(object); 9 Map < String, Object > raw = JSON.toType(JSON.toJson(object), MAP_TYPE); 10 if (!(raw.get("using") instanceof String)) { 11 throw new JsonException("Expected JSON encoded form of locator to have a 'using' field. " + raw); 12 } 13 if (!raw.containsKey("value")) { 14 throw new JsonException("Expected JSON encoded form of locator to have a 'value' field: " + raw); 15 } 16 return ImmutableMap.of((String) raw.get("using"), raw.get("value")); 17}

Solutions

  • Verify requests made by selenium client
  • Add try,catch block to handle the error
  • Update Selenium version to latest

Code Snippets

Here are code snippets that can help you understand more how developers are using

Source:JsonInputTest.java Github

copy

Full Screen

...74 @Test75 public void shouldBeAbleToHandleAnUnterminatedString() {76 JsonInput input = newInput("\"cheese");77 assertThat(input.peek()).isEqualTo(STRING);78 assertThatExceptionOfType(JsonException.class)79 .isThrownBy(input::nextString)80 .withMessageStartingWith("Unterminated string");81 }82 @Test83 public void shouldBeAbleToReadTheEmptyString() {84 JsonInput input = newInput("\"\"");85 assertThat(input.peek()).isEqualTo(STRING);86 assertThat(input.nextString()).isEqualTo("");87 }88 @Test89 public void anEmptyArrayHasNoContents() {90 JsonInput input = newInput("[]");91 assertThat(input.peek()).isEqualTo(START_COLLECTION);92 input.beginArray();93 assertThat(input.hasNext()).isFalse();94 assertThat(input.peek()).isEqualTo(END_COLLECTION);95 input.endArray();96 }97 @Test98 public void anArrayWithASingleElementHasNextButOnlyOneValue() {99 JsonInput input = newInput("[ \"peas\"]");100 input.beginArray();101 assertThat(input.nextString()).isEqualTo("peas");102 input.endArray();103 }104 @Test105 public void anArrayWithMultipleElementsReturnsTrueFromHasNextMoreThanOnce() {106 JsonInput input = newInput("[\"brie\", \"cheddar\"]");107 input.beginArray();108 assertThat(input.hasNext()).isTrue();109 assertThat(input.nextString()).isEqualTo("brie");110 assertThat(input.hasNext()).isTrue();111 assertThat(input.nextString()).isEqualTo("cheddar");112 assertThat(input.hasNext()).isFalse();113 input.endArray();114 }115 @Test116 public void callingHasNextWhenNotInAnArrayOrMapIsAnError() {117 JsonInput input = newInput("\"cheese\"");118 assertThatExceptionOfType(JsonException.class)119 .isThrownBy(input::hasNext);120 }121 @Test122 public void anEmptyMapHasNoContents() {123 JsonInput input = newInput("{ }");124 assertThat(input.peek()).isEqualTo(START_MAP);125 input.beginObject();126 assertThat(input.hasNext()).isFalse();127 assertThat(input.peek()).isEqualTo(END_MAP);128 input.endObject();129 }130 @Test131 public void canReadAMapWithASingleEntry() {132 JsonInput input = newInput("{\"cheese\": \"feta\"}");133 input.beginObject();134 assertThat(input.hasNext()).isTrue();135 assertThat(input.peek()).isEqualTo(NAME);136 assertThat(input.nextName()).isEqualTo("cheese");137 assertThat(input.peek()).isEqualTo(STRING);138 assertThat(input.nextString()).isEqualTo("feta");139 assertThat(input.hasNext()).isFalse();140 input.endObject();141 }142 @Test143 public void canReadAMapWithManyEntries() {144 JsonInput input = newInput(145 "{"146 + "\"cheese\": \"stilton\","147 + "\"vegetable\": \"peas\","148 + "\"random\": 42"149 + "}");150 assertThat(input.peek()).isEqualTo(START_MAP);151 input.beginObject();152 assertThat(input.hasNext()).isTrue();153 assertThat(input.peek()).isEqualTo(NAME);154 assertThat(input.nextName()).isEqualTo("cheese");155 assertThat(input.nextString()).isEqualTo("stilton");156 assertThat(input.hasNext()).isTrue();157 assertThat(input.peek()).isEqualTo(NAME);158 assertThat(input.nextName()).isEqualTo("vegetable");159 assertThat(input.nextString()).isEqualTo("peas");160 assertThat(input.hasNext()).isTrue();161 assertThat(input.peek()).isEqualTo(NAME);162 assertThat(input.nextName()).isEqualTo("random");163 assertThat(input.nextNumber()).isEqualTo(42L);164 assertThat(input.hasNext()).isFalse();165 assertThat(input.peek()).isEqualTo(END_MAP);166 input.endObject();167 }168 @Test169 public void nestedMapIsFine() {170 JsonInput input = newInput("{\"map\": {\"child\": [\"hello\",\"world\"]}}");171 input.beginObject();172 assertThat(input.hasNext()).isTrue();173 assertThat(input.nextName()).isEqualTo("map");174 input.beginObject();175 assertThat(input.hasNext()).isTrue();176 assertThat(input.nextName()).isEqualTo("child");177 input.beginArray();178 assertThat(input.hasNext()).isTrue();179 assertThat(input.nextString()).isEqualTo("hello");180 assertThat(input.hasNext()).isTrue();181 assertThat(input.nextString()).isEqualTo("world");182 assertThat(input.hasNext()).isFalse();183 input.endArray();184 assertThat(input.hasNext()).isFalse();185 input.endObject();186 assertThat(input.hasNext()).isFalse();187 input.endObject();188 }189 @Test190 public void shouldDecodeUnicodeEscapesProperly() {191 String raw = "{\"text\": \"\\u003Chtml\"}";192 try (JsonInput in = new JsonInput(new StringReader(raw), new JsonTypeCoercer(), BY_NAME)) {193 Map<String, Object> map = in.read(MAP_TYPE);194 assertThat(map.get("text")).isEqualTo("<html");195 }196 }197 @Test198 public void shouldCallFromJsonWithJsonInputParameter() {199 String raw = "{\"message\": \"Cheese!\"}";200 try (JsonInput in = new JsonInput(new StringReader(raw), new JsonTypeCoercer(), BY_NAME)) {201 HasFromJsonWithJsonInputParameter obj = in.read(HasFromJsonWithJsonInputParameter.class);202 assertThat(obj.getMessage()).isEqualTo("Cheese!");203 }204 }205 @Test206 public void shouldBeAbleToReadDataLongerThanReadBuffer() {207 char[] chars = new char[]{'c', 'h', 'e', 's'};208 Random r = new Random();209 String raw = Stream.generate(() -> "" + chars[r.nextInt(4)])210 .limit(150).collect(Collectors.joining());211 JsonInput input = newInput("\"" + raw + "\"");212 assertThat(input.peek()).isEqualTo(STRING);213 assertThat(input.nextString()).isEqualTo(raw);214 }215 @Test216 public void shouldBeAbleToReadNonWellFormedDataLongerThanReadBuffer() {217 char[] chars = new char[]{'c', 'h', 'e', 's'};218 Random r = new Random();219 String raw = Stream.generate(() -> "" + chars[r.nextInt(4)])220 .limit(150).collect(Collectors.joining());221 JsonInput input = newInput("\"" + raw);222 assertThat(input.peek()).isEqualTo(STRING);223 assertThatExceptionOfType(JsonException.class)224 .isThrownBy(input::nextString)225 .withMessageStartingWith(String.format(226 "Unterminated string: %s. Last 128 characters read: %s",227 raw, raw.substring(raw.length() - 128)));228 }229 private JsonInput newInput(String raw) {230 StringReader reader = new StringReader(raw);231 return new JsonInput(reader, new JsonTypeCoercer(), BY_NAME);232 }233 public static class HasFromJsonWithJsonInputParameter {234 private final String message;235 public HasFromJsonWithJsonInputParameter(String message) {236 this.message = message;237 }...

Full Screen

Full Screen

Source:TestSessionStatusServlet.java Github

copy

Full Screen

...22import org.openqa.grid.internal.GridRegistry;23import org.openqa.grid.internal.RemoteProxy;24import org.openqa.grid.internal.TestSession;25import org.openqa.selenium.json.Json;26import org.openqa.selenium.json.JsonException;27import org.openqa.selenium.json.JsonInput;28import org.openqa.selenium.json.JsonOutput;29import java.io.BufferedReader;30import java.io.IOException;31import java.io.InputStreamReader;32import java.io.Reader;33import java.io.Writer;34import java.util.HashMap;35import java.util.Map;36import java.util.TreeMap;37import javax.servlet.http.HttpServletRequest;38import javax.servlet.http.HttpServletResponse;39public class TestSessionStatusServlet extends RegistryBasedServlet {40 private final Json json = new Json();41 public TestSessionStatusServlet() {42 super(null);43 }44 public TestSessionStatusServlet(GridRegistry registry) {45 super(registry);46 }47 @Override48 protected void doGet(HttpServletRequest request, HttpServletResponse response)49 throws IOException {50 Map<String, Object> json = ImmutableMap.of(51 "session", request.getParameter("session"));52 process(response, json);53 }54 @Override55 protected void doPost(HttpServletRequest request, HttpServletResponse response)56 throws IOException {57 Map<String, Object> requestJSON = new HashMap<>();58 if (request.getInputStream() != null) {59 try (Reader rd = new BufferedReader(new InputStreamReader(request.getInputStream()));60 JsonInput jin = json.newInput(rd)) {61 requestJSON = jin.read(MAP_TYPE);62 }63 }64 process(response, requestJSON);65 }66 protected void process(HttpServletResponse response, Map<String, Object> requestJson)67 throws IOException {68 response.setContentType("application/json");69 response.setCharacterEncoding("UTF-8");70 response.setStatus(200);71 try (Writer writer = response.getWriter();72 JsonOutput out = json.newOutput(writer)) {73 out.write(getResponse(requestJson));74 } catch (JsonException e) {75 throw new GridException(e.getMessage());76 }77 }78 private Map<String, Object> getResponse(Map<String, Object> requestJson) {79 Map<String, Object> res = new TreeMap<>();80 res.put("success", false);81 // the id can be specified via a param, or in the json request.82 String session;83 if (!requestJson.containsKey("session")) {84 res.put(85 "msg",86 "you need to specify at least a session or internalKey when call the test slot status service.");87 return res;88 }...

Full Screen

Full Screen

Source:CrossDomainRpcLoader.java Github

copy

Full Screen

...17package org.openqa.selenium.remote.server.xdrpc;18import static java.nio.charset.StandardCharsets.UTF_8;19import static org.openqa.selenium.json.Json.MAP_TYPE;20import org.openqa.selenium.json.Json;21import org.openqa.selenium.json.JsonException;22import org.openqa.selenium.json.JsonInput;23import java.io.IOException;24import java.io.InputStream;25import java.io.InputStreamReader;26import java.io.Reader;27import java.nio.charset.Charset;28import java.util.Map;29import javax.servlet.http.HttpServletRequest;30/**31 * Loads a {@link CrossDomainRpc} from a {@link HttpServletRequest}.32 */33public class CrossDomainRpcLoader {34 private final Json json = new Json();35 /**36 * Parses the request for a CrossDomainRpc.37 *38 * @param request The request to parse.39 * @return The parsed RPC.40 * @throws IOException If an error occurs reading from the request.41 * @throws IllegalArgumentException If an occurs while parsing the request42 * data.43 */44 public CrossDomainRpc loadRpc(HttpServletRequest request) throws IOException {45 Charset encoding;46 try {47 String enc = request.getCharacterEncoding();48 encoding = Charset.forName(enc);49 } catch (IllegalArgumentException | NullPointerException e) {50 encoding = UTF_8;51 }52 // We tend to look at the input stream, rather than the reader.53 try (InputStream in = request.getInputStream();54 Reader reader = new InputStreamReader(in, encoding);55 JsonInput jsonInput = json.newInput(reader)) {56 Map<String, Object> read = jsonInput.read(MAP_TYPE);57 return new CrossDomainRpc(58 getField(read, Field.METHOD),59 getField(read, Field.PATH),60 getField(read, Field.DATA));61 } catch (JsonException e) {62 throw new IllegalArgumentException(63 "Failed to parse JSON request: " + e.getMessage(), e);64 }65 }66 private String getField(Map<String, Object> json, String key) {67 if (json.get(key) == null) {68 throw new IllegalArgumentException("Missing required parameter: " + key);69 }70 if (json.get(key) instanceof String) {71 return json.get(key).toString();72 }73 return this.json.toJson(json.get(key));74 }75 /**...

Full Screen

Full Screen

Source:GridConfiguredJson.java Github

copy

Full Screen

...17package org.openqa.grid.common;18import org.openqa.grid.internal.listeners.Prioritizer;19import org.openqa.grid.internal.utils.CapabilityMatcher;20import org.openqa.selenium.json.Json;21import org.openqa.selenium.json.JsonException;22import org.openqa.selenium.json.JsonInput;23import org.openqa.selenium.json.PropertySetting;24import org.openqa.selenium.json.TypeCoercer;25import java.io.IOException;26import java.io.Reader;27import java.io.StringReader;28import java.io.UncheckedIOException;29import java.lang.reflect.Type;30import java.util.function.BiFunction;31public class GridConfiguredJson {32 private final static Json JSON = new Json();33 private GridConfiguredJson() {34 // Utility class35 }36 public static <T> T toType(String json, Type typeOfT) {37 try (Reader reader = new StringReader(json);38 JsonInput jsonInput = JSON.newInput(reader)) {39 return toType(jsonInput, typeOfT);40 } catch (IOException e) {41 throw new UncheckedIOException(e);42 }43 }44 public static <T> T toType(JsonInput jsonInput, Type typeOfT) {45 return jsonInput46 .propertySetting(PropertySetting.BY_FIELD)47 .addCoercers(new CapabilityMatcherCoercer(), new PrioritizerCoercer())48 .read(typeOfT);49 }50 private static class SimpleClassNameCoercer<T> extends TypeCoercer<T> {51 private final Class<?> stereotype;52 protected SimpleClassNameCoercer(Class<?> stereotype) {53 this.stereotype = stereotype;54 }55 @Override56 public boolean test(Class<?> aClass) {57 return stereotype.isAssignableFrom(aClass);58 }59 @Override60 public BiFunction<JsonInput, PropertySetting, T> apply(Type type) {61 return (jsonInput, setting) -> {62 String clazz = jsonInput.nextString();63 try {64 return (T) Class.forName(clazz).asSubclass(stereotype).newInstance();65 } catch (ReflectiveOperationException e) {66 throw new JsonException(String.format("%s could not be coerced to instance", clazz));67 }68 };69 }70 }71 private static class CapabilityMatcherCoercer extends SimpleClassNameCoercer<CapabilityMatcher> {72 protected CapabilityMatcherCoercer() {73 super(CapabilityMatcher.class);74 }75 }76 private static class PrioritizerCoercer extends SimpleClassNameCoercer<Prioritizer> {77 protected PrioritizerCoercer() {78 super(Prioritizer.class);79 }80 }...

Full Screen

Full Screen

Source:JsonConfig.java Github

copy

Full Screen

...16// under the License.17package org.openqa.selenium.grid.config;18import org.openqa.selenium.internal.Require;19import org.openqa.selenium.json.Json;20import org.openqa.selenium.json.JsonException;21import java.io.IOException;22import java.io.Reader;23import java.nio.file.Files;24import java.nio.file.Path;25import java.util.List;26import java.util.Optional;27import java.util.Set;28import static org.openqa.selenium.json.Json.MAP_TYPE;29public class JsonConfig implements Config {30 private static final Json JSON = new Json();31 private final Config delegate;32 JsonConfig(Reader reader) {33 try {34 delegate = new MapConfig(JSON.toType(Require.nonNull("JSON source", reader), MAP_TYPE));35 } catch (JsonException e) {36 throw new ConfigException("Unable to parse input", e);37 }38 }39 public static Config from(Path path) {40 try (Reader reader = Files.newBufferedReader(path)) {41 return new JsonConfig(reader);42 } catch (IOException e) {43 throw new ConfigException("Unable to read JSON.", e);44 }45 }46 @Override47 public Optional<List<String>> getAll(String section, String option) {48 return delegate.getAll(section, option);49 }...

Full Screen

Full Screen

JsonException

Using AI Code Generation

copy

Full Screen

1import org.openqa.selenium.json.JsonException;2public class JsonExceptionExample {3 public static void main(String[] args) {4 try {5 throw new JsonException("JsonException Example");6 } catch (JsonException e) {7 System.out.println(e.getMessage());8 }9 }10}

Full Screen

Full Screen

JsonException

Using AI Code Generation

copy

Full Screen

1public class JsonException extends RuntimeException {2 public JsonException(String message) {3 super(message);4 }5 public JsonException(String message, Throwable cause) {6 super(message, cause);7 }8}9public class JsonOutput implements JsonOutputConverter {10 public JsonOutput(Writer writer) {11 this.writer = new JsonWriter(writer);12 }13 public JsonOutputConverter beginArray() {14 writer.beginArray();15 return this;16 }17 public JsonOutputConverter endArray() {18 writer.endArray();19 return this;20 }21 public JsonOutputConverter beginObject() {22 writer.beginObject();23 return this;24 }25 public JsonOutputConverter endObject() {26 writer.endObject();27 return this;28 }29 public JsonOutputConverter name(String name) {30 writer.name(name);31 return this;32 }33 public JsonOutputConverter value(Object value) {34 writer.value(value);35 return this;36 }37}38public interface JsonOutputConverter {39 JsonOutputConverter beginArray();40 JsonOutputConverter endArray();41 JsonOutputConverter beginObject();42 JsonOutputConverter endObject();43 JsonOutputConverter name(String name);44 JsonOutputConverter value(Object value);45}46public class JsonReader implements JsonInput {47 public JsonReader(Reader reader) {48 this.reader = new JsonInputReader(reader);49 }50 public JsonInput beginArray() {51 reader.beginArray();52 return this;53 }54 public JsonInput endArray() {55 reader.endArray();56 return this;57 }58 public JsonInput beginObject() {59 reader.beginObject();60 return this;61 }62 public JsonInput endObject() {63 reader.endObject();64 return this;65 }66 public JsonInput nextName(String name) {67 reader.nextName(name);68 return this;69 }70 public String nextName() {71 return reader.nextName();72 }73 public String nextString() {74 return reader.nextString();75 }76 public boolean hasNext() {77 return reader.hasNext();78 }79 public boolean nextBoolean() {80 return reader.nextBoolean();81 }82 public int nextInt() {83 return reader.nextInt();84 }85 public long nextLong() {

Full Screen

Full Screen

JsonException

Using AI Code Generation

copy

Full Screen

1import org.openqa.selenium.json.JsonException;2import org.openqa.selenium.json.JsonOutput;3import org.openqa.selenium.json.JsonOutput.JsonType;4public class JsonOutputExample {5 public static void main(String[] args) {6 JsonOutput jsonOutput = new JsonOutput();7 jsonOutput.beginObject().name("name").value("Selenium").endObject();8 System.out.println(jsonOutput.toString());9 jsonOutput.beginObject().name("id").value(1).endObject();10 System.out.println(jsonOutput.toString());11 jsonOutput.beginObject().name("isPresent").value(true).endObject();12 System.out.println(jsonOutput.toString());13 jsonOutput.beginObject().name("null").nullValue().endObject();14 System.out.println(jsonOutput.toString());15 jsonOutput.beginArray().value("Selenium").value("WebDriver").endArray();16 System.out.println(jsonOutput.toString());17 jsonOutput.beginObject().name("name").value("Selenium").name("id").value(1).endObject();18 System.out.println(jsonOutput.toString());19 jsonOutput.beginObject().name("name").value("Selenium").name("id").value(1).name("child").beginObject()20 .name("name").value("WebDriver").name("id").value(2).endObject().endObject();21 System.out.println(jsonOutput.toString());22 jsonOutput.beginObject().name("name").value("Selenium").name("id").value(1).name("child").beginArray()23 .beginObject().name("name").value("WebDriver").name("id").value(2).endObject()24 .beginObject().name("name").value("Appium").name("id").value(3).endObject()25 .endArray().endObject();26 System.out.println(jsonOutput.toString());27 jsonOutput.beginArray().beginObject().name("name").value("Selenium").name("id").value(1).endObject()

Full Screen

Full Screen

JsonException

Using AI Code Generation

copy

Full Screen

1import org.openqa.selenium.json.JsonException;2public class JsonExceptionExample {3public static void main(String[] args) {4JsonException jsonException = new JsonException("Invalid Json");5System.out.println(jsonException.getMessage());6}7}

Full Screen

Full Screen
copy
1@RunWith(Parameterized.class)2public class RunTenTimes {34 @Parameterized.Parameters5 public static Object[][] data() {6 return new Object[10][0];7 }89 public RunTenTimes() {10 }1112 @Test13 public void runsTenTimes() {14 System.out.println("run");15 }16}17
Full Screen
copy
1@Repeat(value = 10)2
Full Screen

Selenium 4 Tutorial:

LambdaTest’s Selenium 4 tutorial is covering every aspects of Selenium 4 testing with examples and best practices. Here you will learn basics, such as how to upgrade from Selenium 3 to Selenium 4, to some advanced concepts, such as Relative locators and Selenium Grid 4 for Distributed testing. Also will learn new features of Selenium 4, such as capturing screenshots of specific elements, opening a new tab or window on the browser, and new protocol adoptions.

Chapters:

  1. Upgrading From Selenium 3 To Selenium 4?: In this chapter, learn in detail how to update Selenium 3 to Selenium 4 for Java binding. Also, learn how to upgrade while using different build tools such as Maven or Gradle and get comprehensive guidance for upgrading Selenium.

  2. What’s New In Selenium 4 & What’s Being Deprecated? : Get all information about new implementations in Selenium 4, such as W3S protocol adaption, Optimized Selenium Grid, and Enhanced Selenium IDE. Also, learn what is deprecated for Selenium 4, such as DesiredCapabilites and FindsBy methods, etc.

  3. Selenium 4 With Python: Selenium supports all major languages, such as Python, C#, Ruby, and JavaScript. In this chapter, learn how to install Selenium 4 for Python and the features of Python in Selenium 4, such as Relative locators, Browser manipulation, and Chrom DevTool protocol.

  4. Selenium 4 Is Now W3C Compliant: JSON Wireframe protocol is retiring from Selenium 4, and they are adopting W3C protocol to learn in detail about the advantages and impact of these changes.

  5. How To Use Selenium 4 Relative Locator? : Selenium 4 came with new features such as Relative Locators that allow constructing locators with reference and easily located constructors nearby. Get to know its different use cases with examples.

  6. Selenium Grid 4 Tutorial For Distributed Testing: Selenium Grid 4 allows you to perform tests over different browsers, OS, and device combinations. It also enables parallel execution browser testing, reads up on various features of Selenium Grid 4 and how to download it, and runs a test on Selenium Grid 4 with best practices.

  7. Selenium Video Tutorials: Binge on video tutorials on Selenium by industry experts to get step-by-step direction from automating basic to complex test scenarios with Selenium.

Selenium 101 certifications:

LambdaTest also provides certification for Selenium testing to accelerate your career in Selenium automation testing.

Run Selenium automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Test Your Web Or Mobile Apps On 3000+ Browsers

Signup for free

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful