Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WithMinimumWaitTimeoutOf - does it not apply to every action? #221

Open
kjohann opened this issue Nov 3, 2015 · 0 comments
Open

WithMinimumWaitTimeoutOf - does it not apply to every action? #221

kjohann opened this issue Nov 3, 2015 · 0 comments

Comments

@kjohann
Copy link

kjohann commented Nov 3, 2015

I am setting up my first real test with Seleno (after doing a simple POC), and have run in to something I find a little peculiar. I am doing a test where I fill in a form om a page. After the form is filled in, there is a submit button that is pressed. This essentially refreshes the browser as it does a RedirectToAction back to the same page in the controller action. After pressing the submit button, I would like to press a tab (which is an anchor tag) to go to another page.

However, doing this throws an exception: "stale element reference: element is not attached to the page document". But if I do the navigation like this (the code is from my own BasePage class that inherits Page), I don't get the exception:

var findExpression = By.LinkText(text);
Find.Element(findExpression);
return Navigate.To<TPage>(findExpression);

I also have an issue with the first form page if I click the submit button and then try to fill in another form element before submitting again. The lates submit doesn't seem to happen (almost like the next action, which is the tab-click, overrides the submit).

To me this feels a little confusing.. I thought that when initializing a SelenoHost with a remote web driver, the default implicit wait was 10 seconds? And if it is not, is there a better way to for instance navigate by linktext using an explicit timeout?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant