Hot answers tagged

2

My main criteria is readability and maintainability. Speed has never been as issue for me. There's other parts of the test frameworks I use that have much more significant speed issues. The basic idea is always 'what will it take to uniquely identify the element' with two principles: Don't over specify the page structure - this will make the selector ...


2

driver.ExecuteScript(string.Format("document.getElementById('cred-password-inputtext').value='{0}';",password)); This solution has resolved my problem.


1

What you could do, is try to use an existing profile in the browser, so that way it would actually save the cookies somewhere. Otherwise the webdriver starts up an anonymous profile every time that doesn't save the cookies, it just throws them away when the browser is disposed of. This is mentioned in this SO Answer to Selenium Webdriver not respecting ...



Only top voted, non community-wiki answers of a minimum length are eligible