![]() ![]() ![]() Start of test code from selenium import webdriver WebDriver driver = new FirefoxDriver(profile) tPreference("security.insecure_field_", false) Set the preference to disable insecure password warning You can stop this warning and opening of the new tab by changing the Firefox preference security.insecure_field_ to false Selenium code to Create the browser profile & set preference // Create a Firefox profileįirefoxProfile profile = new FirefoxProfile() It causes currently running Selenium tests to be failed. Logins entered here could be compromisedįirefox will also open the URL in a new tab which takes the focus away from the page you are testing. If you use Selenium and Firefox version 52 or higher for running the automated tests and your development site does not use SSL, you will get the following warning when entering passwords on your login page This connection is not secure.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |