question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Need to keep driver alive from qutting after any called feature

See original GitHub issue

Currently, if we initialize a driver in a feature and call another feature in it, once the called feature is executed it is quitting the parent feature’s driver instance.

Feature: browser automation

Background:
  * configure driver = { type: 'geckodriver', showDriverLog: true }

Scenario: try to login to github
  Given driver 'https://google.com'
  And input("input[name=q]", 'karate dsl')
  When submit().click("input[name=btnI]")
  Then match driver.url == 'https://github.com/intuit/karate'
  * def callUsers = call read("users.feature")
  * def bytes = driver.screenshot()
  * karate.embed(bytes, 'image/png')

in the above example after users.feature it is observed that driver instance is quitting and usage of driver will give an error.

KarateApiAndWeb.zip

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
babusekarancommented, Dec 7, 2019

@ptrthomas Thanks! it is working fine 👍

1reaction
ptrthomascommented, Dec 7, 2019

@babusekaran looks like it was a one-line fix ! can you confirm ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Need to keep driver alive from qutting after any called feature
Currently, if we initialize a driver in a feature and call another feature in it, once the called feature is executed it is...
Read more >
Keep containers alive during daemon downtime
This functionality is called live restore. The live restore option helps reduce container downtime due to daemon crashes, planned outages, or upgrades. Note....
Read more >
How to inherit a webdriver instance from a called feature file?
The behavior that I see is that the driver closes when the code reaches the point of going back to the "validation" feature...
Read more >
Sovereign Citizens Movement | Southern Poverty Law Center
Sovereign citizens believe they are not under the jurisdiction of the federal government and consider themselves exempt from U.S. law.
Read more >
Squad Up, Drop In! Call of Duty®: Warzone™ 2.0 Tactical ...
Its Battle Royale mode will also get some incredible new features in addition ... When this happens, you should keep the following in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found