When we do ui automation we have to break it in different scenario so definitely i will need login only once now i made a feature login.feature where i write below lines
Given driver 'example.com'
This i will call in my feature file as below
Feature: Test all scenarios
BackGround: login once
* callonce read('login.feature')
Scenario : test drop down
* driver.click('#someId')
Scenario: check the table aftr drop down clicked
* driver.highlight('#someId') # here driver is not recognized
Now at this second scenario neither the highlight alone not driver.highlight is working. I know i will be suggested something like scenario should be independent but obviosuly i wont be logging and closing browser again and again right ? Please suggest me what can i do to achieve this
Note : i am using 0.9.6.RC4 karate version which is latest