Home > other >  For help, whether directly by python selenium to bypass the login id to get into form query web page
For help, whether directly by python selenium to bypass the login id to get into form query web page

Time:09-16

?
Concrete is: the form is query and registration page by clicking the log in to your account password authentication code into a total page, then click on a TAB to the next page, click on the TAB to enter a query page, enter the id number after can enter the corresponding page questionnaire (display personal information data survey), is my original approach step by step according to the manual operation click with selenium simulation, each to fill one's will repeat login into the table, I want to ask can bypass the login page directly into the query page, enter the id number into the questionnaire page again? What your idea is?

CodePudding user response:

Login system basic access authentication, all business operations in the system, must be login authentication, this should be no way to bypass, unless development give you remove the login authentication;
Suggestion:
1, if is only a test environment, allowing development to login certification authority turn off;
2, if it is the UI automation, you can use the Unittest framework, using the setup/teardown to define the use cases such as login and implementation rules;
3, if is the interface automation, keep the login interface token in configuration, and then use the session session, make sure that the interface behind the login only once cases have been run,
  • Related