gemini
gemini copied to clipboard
[Cookie][Chrome] Can any one could provide a cookie example when using chrome
Hello All,
We would like to load cookie before accessing the urls. Is there anyone could provide a sample about how to use cookie with Gemini + Chrome?
Really appreciate for your help in advance.
Thank you, Ken
I tried followings, failed:
gemini.suite('1', function(suite) {
suite
.setUrl('http://127.0.0.1:8080/', function(actions) {
actions.setCookie({"name": "ken", "value": "tomato", "url": "http://127.0.0.1:8080"})
})
.setCaptureElements('html')
.capture('plain', function(actions) {
actions.waitForElementToShow('ken', 30000)
})
});
How about executeJS?
@Hrommi Sorry for the delay, and really appreciate for your help.
As far as I know, the executeJS could only be run after page load.
Is it possible to set the cookie before the page load?
Thank you, Ken
It can be done with executeJS this way: https://github.com/gemini-testing/gemini/issues/799