Webdriver creates new session on every page
up vote
0
down vote
favorite
Writing acceptance test for Magento 1.9 site using Codeception and Selenium-webdriver I got some issue.
Every time, when driver go to another page, for example clicks link and goes to product page or any other, new session starts. Magento "frontend" cookie get new value every time, so it's create a lot of problems. Troubles with adding item to cart, refusing payment. When I use site manualy, it's OK. Session still the same all the time. So problem is in webdriver. How can I fix it?
selenium testing webdriver session-cookies acceptance-testing
add a comment |
up vote
0
down vote
favorite
Writing acceptance test for Magento 1.9 site using Codeception and Selenium-webdriver I got some issue.
Every time, when driver go to another page, for example clicks link and goes to product page or any other, new session starts. Magento "frontend" cookie get new value every time, so it's create a lot of problems. Troubles with adding item to cart, refusing payment. When I use site manualy, it's OK. Session still the same all the time. So problem is in webdriver. How can I fix it?
selenium testing webdriver session-cookies acceptance-testing
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
Writing acceptance test for Magento 1.9 site using Codeception and Selenium-webdriver I got some issue.
Every time, when driver go to another page, for example clicks link and goes to product page or any other, new session starts. Magento "frontend" cookie get new value every time, so it's create a lot of problems. Troubles with adding item to cart, refusing payment. When I use site manualy, it's OK. Session still the same all the time. So problem is in webdriver. How can I fix it?
selenium testing webdriver session-cookies acceptance-testing
Writing acceptance test for Magento 1.9 site using Codeception and Selenium-webdriver I got some issue.
Every time, when driver go to another page, for example clicks link and goes to product page or any other, new session starts. Magento "frontend" cookie get new value every time, so it's create a lot of problems. Troubles with adding item to cart, refusing payment. When I use site manualy, it's OK. Session still the same all the time. So problem is in webdriver. How can I fix it?
selenium testing webdriver session-cookies acceptance-testing
selenium testing webdriver session-cookies acceptance-testing
asked Nov 18 at 20:08
M.Pl
1
1
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
use "this" key work for using same instance for webdriver
ex.
@BeforeMethod
public void sample(WebDriver driver)
{`enter code here`
driver1-this.driver;
]
New contributor
I am using webdriver via Codeception. But, I think I understood your post, but according to selenium-server logs, webdriver uses one instance for test.
– M.Pl
Nov 19 at 17:01
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
use "this" key work for using same instance for webdriver
ex.
@BeforeMethod
public void sample(WebDriver driver)
{`enter code here`
driver1-this.driver;
]
New contributor
I am using webdriver via Codeception. But, I think I understood your post, but according to selenium-server logs, webdriver uses one instance for test.
– M.Pl
Nov 19 at 17:01
add a comment |
up vote
0
down vote
use "this" key work for using same instance for webdriver
ex.
@BeforeMethod
public void sample(WebDriver driver)
{`enter code here`
driver1-this.driver;
]
New contributor
I am using webdriver via Codeception. But, I think I understood your post, but according to selenium-server logs, webdriver uses one instance for test.
– M.Pl
Nov 19 at 17:01
add a comment |
up vote
0
down vote
up vote
0
down vote
use "this" key work for using same instance for webdriver
ex.
@BeforeMethod
public void sample(WebDriver driver)
{`enter code here`
driver1-this.driver;
]
New contributor
use "this" key work for using same instance for webdriver
ex.
@BeforeMethod
public void sample(WebDriver driver)
{`enter code here`
driver1-this.driver;
]
New contributor
New contributor
answered Nov 19 at 7:32
santosh gaikwad
1
1
New contributor
New contributor
I am using webdriver via Codeception. But, I think I understood your post, but according to selenium-server logs, webdriver uses one instance for test.
– M.Pl
Nov 19 at 17:01
add a comment |
I am using webdriver via Codeception. But, I think I understood your post, but according to selenium-server logs, webdriver uses one instance for test.
– M.Pl
Nov 19 at 17:01
I am using webdriver via Codeception. But, I think I understood your post, but according to selenium-server logs, webdriver uses one instance for test.
– M.Pl
Nov 19 at 17:01
I am using webdriver via Codeception. But, I think I understood your post, but according to selenium-server logs, webdriver uses one instance for test.
– M.Pl
Nov 19 at 17:01
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53364966%2fwebdriver-creates-new-session-on-every-page%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown