Skip to content

Commit

Permalink
Merge pull request #2318 from MohabMohie/patch-1
Browse files Browse the repository at this point in the history
Update Demo01JavaRunner.java
  • Loading branch information
ptrthomas committed May 22, 2023
2 parents b55be67 + a4f4af4 commit 149f48a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions karate-demo/src/test/java/driver/demo/Demo01JavaRunner.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ void testChrome() throws Exception {
String html = driver.html(".flash-error");
assertTrue(html.contains("Incorrect username or password."));
driver.setUrl("https://google.com");
driver.input("input[name=q]", "karate dsl");
driver.input("textarea[name=q]", "karate dsl");
driver.submit().click("input[name=btnI]");
assertEquals("https://github.com/karatelabs/karate", driver.getUrl());
byte[] bytes = driver.screenshot();
Expand All @@ -46,7 +46,7 @@ void testEdge() throws Exception {
String html = driver.html(".flash-error");
assertTrue(html.contains("Incorrect username or password."));
driver.setUrl("https://google.com");
driver.input("input[name=q]", "karate dsl");
driver.input("textarea[name=q]", "karate dsl");
driver.submit().click("input[name=btnI]");
assertEquals("https://github.com/karatelabs/karate", driver.getUrl());
byte[] bytes = driver.screenshot();
Expand Down

0 comments on commit 149f48a

Please sign in to comment.