CN113672826B - Page jump method, device, computer equipment and storage medium - Google Patents
Page jump method, device, computer equipment and storage medium Download PDFInfo
- Publication number
- CN113672826B CN113672826B CN202110852954.5A CN202110852954A CN113672826B CN 113672826 B CN113672826 B CN 113672826B CN 202110852954 A CN202110852954 A CN 202110852954A CN 113672826 B CN113672826 B CN 113672826B
- Authority
- CN
- China
- Prior art keywords
- page
- jump
- browser
- address
- preset
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 49
- 238000012545 processing Methods 0.000 claims abstract description 43
- 230000009191 jumping Effects 0.000 claims abstract description 21
- 230000006870 function Effects 0.000 claims description 118
- 238000004590 computer program Methods 0.000 claims description 26
- 230000008569 process Effects 0.000 claims description 16
- 238000012790 confirmation Methods 0.000 claims description 6
- 230000007704 transition Effects 0.000 claims description 4
- 238000012360 testing method Methods 0.000 abstract description 24
- 238000004891 communication Methods 0.000 description 5
- 230000004044 response Effects 0.000 description 5
- 238000010586 diagram Methods 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 3
- 230000003068 static effect Effects 0.000 description 2
- BUGBHKTXTAQXES-UHFFFAOYSA-N Selenium Chemical compound [Se] BUGBHKTXTAQXES-UHFFFAOYSA-N 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 239000003814 drug Substances 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 229910052711 selenium Inorganic materials 0.000 description 1
- 239000011669 selenium Substances 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/955—Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
- G06F16/9558—Details of hyperlinks; Management of linked annotations
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/958—Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
- G06F16/972—Access to data in other repository systems, e.g. legacy data or dynamic Web page generation
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The application relates to a page jumping method, a page jumping device, computer equipment and a storage medium. The method comprises the following steps: starting a target browser and displaying a first page in the target browser; acquiring a first address and a second address, and generating a jump path according to the first address and the second address; the first address is an address corresponding to the first page, and the second address is an address corresponding to a second page to be jumped; acquiring jump trigger information based on the first page; and responding to the jump triggering information, calling a preset function to carry out page jump processing according to the jump path, and converting the display of the first page by the target browser into the display of the second page. By adopting the method, the test time can be saved, the test efficiency can be improved, and the test requirement can be met.
Description
Technical Field
The present application relates to the field of browser technologies, and in particular, to a page skip method, a page skip device, a computer device, and a storage medium.
Background
A browser is a piece of software that allows a user to interact with HTML files or web servers. With the rapid development of information technology, browsers have penetrated into various fields of people's life, such as communication, industry, medicine, teaching, etc., and bring great convenience to people's life.
In the related art, a page jump of a browser requires a user to manually click in a browser interface. However, during the pressure test, the manual clicking can result in long test time and low test efficiency, and the test requirement is difficult to meet.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a page jump method, apparatus, computer device, and storage medium that can save test time, improve test efficiency, and meet test requirements.
A method of page jumping, the method comprising:
starting a target browser and displaying a first page in the target browser;
Acquiring a first address and a second address, and generating a jump path according to the first address and the second address; the first address is an address corresponding to the first page, and the second address is an address corresponding to the second page to be jumped;
acquiring jump trigger information based on the first page;
And responding to the jump triggering information, calling a preset function to carry out page jump processing according to the jump path, and converting the target browser from displaying the first page to displaying the second page.
In one embodiment, the preset function includes a jump function, the second page is a login page, the calling the preset function performs a page jump process according to a jump path, and the target browser transitions from displaying the first page to displaying the second page, including:
And calling a jump function, carrying out page jump processing according to the jump path, and converting the target browser from displaying the current page to displaying the login page.
In one embodiment, the preset function includes a login function, the first page is a login page, the second page is a home page, the calling the preset function performs a page jump process according to a jump path, and the target browser converts from displaying the first page to displaying the second page, including:
Calling a login function, obtaining a preset login role, and selecting a corresponding login name and a login password according to the login role;
and filling the login name and the login password into a login interface, performing page jump processing, and converting the display login page into a display home page by the target browser.
In one embodiment, the preset function includes a jump function, the first page is a first-level directory page, the second page is a second-level directory page, the calling the preset function performs a page jump process according to a jump path, and the target browser switches from displaying the first page to displaying the second page, including:
And calling a jump function, carrying out page jump processing according to the jump path, and converting the target browser from displaying the primary catalog page to displaying the secondary catalog page.
In one embodiment, the opening the target browser and displaying the first page in the target browser includes:
acquiring a preset device type and a preset browser type;
Calling a first preset class, starting a target browser corresponding to the browser type, and displaying a first page corresponding to the equipment type in the target browser;
The first preset class is used for controlling the page display of the browser.
In one embodiment, the obtaining the first address and the second address, and generating the jump path according to the first address and the second address includes:
Acquiring a first address corresponding to a current page displayed by a target browser and a preset second address;
calling a path generation function in a second preset class, and generating a jump path according to the first address and the second address;
The second preset class is used for setting a browser page map.
In one embodiment, the acquiring the skip trigger information based on the first page includes:
calling a third preset class to input a second address and a confirmation operation in a search box of the first page to obtain jump triggering information;
The third preset class is used for setting browser page operation.
A page jumping apparatus, the apparatus comprising:
the browser opening module is used for opening the target browser and displaying a first page in the target browser;
The path generation module is used for acquiring the first address and the second address and generating a jump path according to the first address and the second address; the first address is an address corresponding to the first page, and the second address is an address corresponding to the second page to be jumped;
The trigger acquisition module is used for acquiring jump trigger information based on the first page;
And the page jump module is used for responding to the jump trigger information, calling a preset function to carry out page jump processing according to the jump path, and converting the target browser from displaying the first page to displaying the second page.
In one embodiment, the preset function includes a skip function, the second page is a login page, and the page skip module is specifically configured to call the skip function, perform page skip processing according to a skip path, and convert the target browser from displaying the current page to displaying the login page.
In one embodiment, the preset function includes a login function, the first page is a login page, the second page is a home page, and the page skip module is specifically configured to call the login function, obtain a preset login role, and select a corresponding login name and a login password according to the login role; and filling the login name and the login password into a login interface, performing page jump processing, and converting the display login page into a display home page by the target browser.
In one embodiment, the preset function includes a skip function, the first page is a primary catalog page, the second page is a secondary catalog page, and the page skip module is specifically configured to call the skip function, perform page skip processing according to a skip path, and convert the target browser from displaying the primary catalog page to displaying the secondary catalog page.
In one embodiment, the browser opening module is specifically configured to obtain a preset device type and a preset browser type; calling a first preset class, starting a target browser corresponding to the browser type, and displaying a first page corresponding to the equipment type in the target browser;
The first preset class is used for controlling the page display of the browser.
In one embodiment, the path generating module is specifically configured to obtain a first address corresponding to a current page displayed by a target browser and a preset second address; calling a path generation function in a second preset class, and generating a jump path according to the first address and the second address;
The second preset class is used for setting a browser page map.
In one embodiment, the trigger obtaining module is specifically configured to invoke a third preset class to input a second address and confirm operation in a search box of the first page, so as to obtain jump trigger information;
The third preset class is used for setting browser page operation.
A computer device comprising a memory storing a computer program and a processor which when executing the computer program performs the steps of:
starting a target browser and displaying a first page in the target browser;
Acquiring a first address and a second address, and generating a jump path according to the first address and the second address; the first address is an address corresponding to the first page, and the second address is an address corresponding to the second page to be jumped;
acquiring jump trigger information based on the first page;
And responding to the jump triggering information, calling a preset function to carry out page jump processing according to the jump path, and converting the target browser from displaying the first page to displaying the second page.
A computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of:
starting a target browser and displaying a first page in the target browser;
Acquiring a first address and a second address, and generating a jump path according to the first address and the second address; the first address is an address corresponding to the first page, and the second address is an address corresponding to the second page to be jumped;
acquiring jump trigger information based on the first page;
And responding to the jump triggering information, calling a preset function to carry out page jump processing according to the jump path, and converting the target browser from displaying the first page to displaying the second page.
The page jump method, the page jump device, the computer equipment and the storage medium are characterized in that the terminal starts a target browser and displays a first page in the target browser; acquiring a first address and a second address, and generating a jump path according to the first address and the second address; acquiring jump trigger information based on the first page; and responding to the jump triggering information, calling a preset function to carry out page jump processing according to the jump path, and converting the target browser from displaying the first page to displaying the second page. Through the embodiment of the disclosure, the terminal can automatically open the browser and perform page skip, and compared with the prior art that the page skip can be realized only by clicking manually, the method and the device can save labor and realize quick repeated execution, thereby saving test time, improving test efficiency and meeting test requirements.
Drawings
FIG. 1 is a flow diagram of a page jump method in one embodiment;
FIG. 2 is a flow chart of a page jump method according to another embodiment;
FIG. 3 is a block diagram of a page jumping apparatus, in one embodiment;
fig. 4 is an internal structural diagram of a computer device in one embodiment.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
In one embodiment, as shown in fig. 1, a page skip method is provided, where the method is applied to a terminal to illustrate the method, it is understood that the method may also be applied to a server, and may also be applied to a system including the terminal and the server, and implemented through interaction between the terminal and the server. The terminal may be, but not limited to, various personal computers, notebook computers, smartphones, tablet computers and portable wearable devices, and the server may be implemented by a separate server or a server cluster formed by a plurality of servers. The embodiment may include the steps of:
Step 101, starting a target browser and displaying a first page in the target browser.
When the terminal performs the pressure test, the target browser can be automatically opened, and a first page is displayed in the target browser. The first page may be a default page, or may be a page displayed before the target browser is closed in the previous test. The embodiment of the disclosure does not limit the first page, and can be set according to actual conditions.
Step 102, obtaining the first address and the second address, and generating a jump path according to the first address and the second address.
The first address is an address corresponding to the first page, and the second address is an address corresponding to the second page to be skipped.
After the terminal displays the first page in the target browser, the terminal acquires the address corresponding to the first page. And the terminal acquires the address corresponding to the second page to be jumped. The address may be a URL (Uniform Resource Locator ) or other addresses, which is not limited in the embodiment of the present disclosure and may be set according to practical situations.
Step 103, acquiring jump trigger information based on the first page.
The jump triggering information comprises jump triggering operation received by the terminal based on the first page and/or an input device (keyboard, mouse and touch screen).
And the terminal receives the jump triggering operation in the first page and acquires the jump triggering information. For example, if the terminal clicks a certain component in the first page, the terminal acquires the jump triggering information; or the terminal inputs the second address in the first page and clicks the search key, and the jump triggering information is also obtained. The embodiment of the disclosure does not limit the jump triggering information.
And 104, responding to the jump trigger information, calling a preset function to carry out page jump processing according to the jump path, and converting the target browser from displaying the first page to displaying the second page.
After the terminal acquires the jump trigger information, a preset function is called in response to the jump trigger information. The preset function can perform page skip processing according to the skip path generated in the steps, so that the target browser skips from displaying the first page to displaying the second page.
In the page jump method, a terminal starts a target browser and displays a first page in the target browser; acquiring a first address and a second address, and generating a jump path according to the first address and the second address; acquiring jump trigger information based on the first page; and responding to the jump triggering information, calling a preset function to carry out page jump processing according to the jump path, and converting the target browser from displaying the first page to displaying the second page. Through the embodiment of the disclosure, the terminal can automatically open the browser and perform page skip, and compared with the prior art that the page skip can be realized only by clicking manually, the method and the device can save labor and realize quick repeated execution, thereby saving test time, improving test efficiency and meeting test requirements.
In one example, the page jump process may include jumping from the current page to the login page, jumping from the login interface to the home page, and jumping between the home page, the primary catalog page, and the secondary catalog page, among many other things.
In one of the cases, the preset function includes a jump function, the second page is a login page, the calling the preset function performs a page jump process according to a jump path, and the process of converting the target browser from displaying the first page to displaying the second page may include: and calling a jump function, carrying out page jump processing according to the jump path, and converting the target browser from displaying the current page to displaying the login page.
For example, the jump function is goto (), the terminal calls the jump function goto () in response to the jump trigger information, the jump function goto () can perform page jump processing according to the generated jump path, and the target browser can jump from the current page to the login page.
In one of the cases, the preset function includes a login function, the first page is a login page, the second page is a home page, the calling the preset function performs a page jump process according to a jump path, and the process of converting the target browser from displaying the first page to displaying the second page includes: calling a login function, obtaining a preset login role, and selecting a corresponding login name and a login password according to the login role; and filling the login name and the login password into a login interface, performing page jump processing, and converting the display login page into a display home page by the target browser.
For example, the login function is login (), the terminal calls the login function login () in response to the jump trigger information, the login function login () can obtain a preset login role, select a corresponding login name and a login password according to the login role, and fill the login name and the login password into the login interface. And then, performing page jumping processing, and jumping the target browser from the login page to the first page.
The login roles may include an administrator and a general user, or an internal user and an external user. The embodiment of the disclosure does not limit the login role.
In one of the cases, the preset function includes a jump function, the first page is a first-level directory page, the second page is a second-level directory page, the process of calling the preset function to perform page jump processing according to a jump path, and the process of converting the target browser from displaying the first page to displaying the second page may include: and calling a jump function, carrying out page jump processing according to the jump path, and converting the target browser from displaying the primary catalog page to displaying the secondary catalog page.
For example, the jump function is goto (), the terminal calls the jump function goto () in response to the jump trigger information, the jump function goto () can perform page jump processing according to the generated jump path, and the target browser can jump from the primary catalog page to the secondary catalog page.
The first-level directory page consists of a plurality of main pages, and the second-level directory page is a sub page in each main page. The embodiment of the disclosure does not limit the primary catalog page and the secondary catalog page.
It will be appreciated that in actual operation, other jump cases may be included, without being limited to the above, and that jump functions, login functions are also limited to goto () and log (), as described above.
In the above embodiment, the method for jumping from the current page to the login page, from the login page to the first page, from the first-level catalog page to the second-level catalog page and other page jumping modes are provided, and in the process of page jumping, automatic jumping can be realized by calling a function without manual clicking, so that not only can labor be saved, but also the testing time can be saved, and the testing efficiency can be improved.
In one embodiment, as shown in fig. 2, a page skip method is provided, and the method is applied to a terminal for illustration, and the embodiment of the disclosure may include the following steps:
step 201, obtaining a preset device type and browser type.
The device type is used for representing the type of the device for opening the target browser, and comprises at least one of a personal computer, a notebook computer, a smart phone, a tablet computer, a portable wearable device and a server. The browser type is used for representing the type of the target browser, and comprises at least one of IE and Google. The embodiments of the present disclosure are not limited to device types and browser types.
A configuration file is preset in the terminal, wherein the configuration file comprises a device type and a browser type. When the pressure test is performed, the terminal can analyze the device type and the browser type from the configuration file.
For example, if the preset device type is a notebook computer and the browser type is an IE, the terminal may parse the notebook computer and the IE from the configuration file.
Step 202, a first preset class is called, a target browser corresponding to the browser type is started, and a first page corresponding to the equipment type is displayed in the target browser.
The first preset class is used for controlling the page display of the browser. The first preset class may be a Browser (Selenium 2. 2 Liabrary) class.
Default pages corresponding to different device types are preset in the terminal, and the Browser class is called, so that the target Browser can be started according to the Browser type, and the default pages corresponding to the device types are displayed, namely the first page is displayed.
Step 203, a first address corresponding to a current page displayed by the target browser and a preset second address are obtained.
The configuration file preset in the terminal also comprises a second address. The terminal acquires a first address corresponding to the current page displayed by the target browser, and analyzes a second address from the configuration file.
Step 204, calling a path generation function in a second preset class, and generating a jump path according to the first address and the second address.
The second preset class is used for setting a browser page map. The second preset class may be PageMap (object) classes. The PageMap classes may contain a complete set of browser pages of different device types, each set of browser pages containing one or more of a login page, a home page, a primary catalog page, and a secondary catalog page. For example, pageMap classes contain a complete set of browser pages for personal computers, a complete set of browser pages for notebook computers, and a complete set of browser pages for smartphones. The browser pages included in PageMap classes are not limited by the embodiments of the present disclosure.
The second preset class is provided with a path generating function getpath (), after the terminal acquires the first address and the second address, the terminal transmits the first address and the second address as parameters to the path generating function getpath (), and the path generating function getpath () generates a unique path from the first address to the second address, namely a jump path.
Step 205, a third preset class is called to input a second address and a confirmation operation in the search box of the first page, so as to obtain jump triggering information.
The third preset class is used for setting browser page operation. The third preset class may be WebBasePage (object) classes. The WebBasePage class contains various browser page operations, including, for example, entering or clearing data in a page text box, clicking enter, clicking a button control, and the like. The embodiments of the present disclosure do not limit browser page operations.
And invoking WebBasePage types, automatically inputting a second address in the search box of the first page, clicking the carriage return, and thus obtaining jump triggering information by the terminal.
Step 206, calling a jump function, performing page jump processing according to the jump path, and converting the target browser from displaying the current page to displaying the login page.
The jump function goto () may be set in the Browser class. Calling the jump function goto () in the Browser class, the jump from the current page to the login interface may be completed according to the second address.
Step 207, calling a login function, obtaining a preset login role, and selecting a corresponding login name and a login password according to the login role; and filling the login name and the login password into a login interface, performing page jump processing, and converting the display login page into a display home page by the target browser.
A login function logic () may also be set in the Browser class. Calling a login function logic () in the Browser class, determining a login role, selecting a corresponding login name and a login password according to the login role, and filling the login name and the login password in a login page. Then, the jump function goto () in the Browser class is called to carry out page jump processing, and the target Browser jumps from the login page to the top page.
Step 208, calling a jump function, and performing page jump processing according to the jump path, wherein the target browser is converted from displaying the primary catalog page to displaying the secondary catalog page.
And calling a jump function goto () in the Browser class to carry out page jump processing, and jumping the target Browser from the primary catalog page to the secondary catalog page.
In the above embodiment, the terminal may automatically start the target browser and automatically perform page skip. In the process of page skip, manual operation is not needed, so that manpower can be saved, testing time is saved, testing efficiency is improved, and testing requirements are met.
It should be understood that, although the steps in the flowcharts of fig. 1 to 2 are sequentially shown as indicated by arrows, the steps are not necessarily sequentially performed in the order indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least a portion of the steps in fig. 1-2 may include multiple steps or stages that are not necessarily performed at the same time, but may be performed at different times, nor does the order in which the steps or stages are performed necessarily occur sequentially, but may be performed alternately or alternately with at least a portion of the steps or stages in other steps or other steps.
In one embodiment, as shown in fig. 3, there is provided a page jumping apparatus, including:
the browser opening module 301 is configured to open a target browser and display a first page in the target browser;
the path generation module 302 is configured to obtain a first address and a second address, and generate a jump path according to the first address and the second address; the first address is an address corresponding to the first page, and the second address is an address corresponding to the second page to be jumped;
A trigger acquiring module 303, configured to acquire skip trigger information based on the first page;
The page skip module 304 is configured to call a preset function to perform page skip processing according to the skip path in response to the skip trigger information, and the target browser switches from displaying the first page to displaying the second page.
In one embodiment, the preset function includes a skip function, the second page is a login page, and the page skip module 304 is specifically configured to call the skip function, perform a page skip process according to a skip path, and convert the target browser from displaying the current page to displaying the login page.
In one embodiment, the preset function includes a login function, the first page is a login page, the second page is a home page, and the page skip module 304 is specifically configured to call the login function, obtain a preset login role, and select a corresponding login name and a login password according to the login role; and filling the login name and the login password into a login interface, performing page jump processing, and converting the display login page into a display home page by the target browser.
In one embodiment, the preset function includes a skip function, the first page is a primary catalog page, the second page is a secondary catalog page, and the page skip module 304 is specifically configured to call the skip function, perform page skip processing according to a skip path, and switch the target browser from displaying the primary catalog page to displaying the secondary catalog page.
In one embodiment, the browser opening module 301 is specifically configured to obtain a preset device type and a preset browser type; calling a first preset class, starting a target browser corresponding to the browser type, and displaying a first page corresponding to the equipment type in the target browser;
The first preset class is used for controlling the page display of the browser.
In one embodiment, the path generating module 302 is specifically configured to obtain a first address corresponding to a current page displayed by a target browser and a preset second address; calling a path generation function in a second preset class, and generating a jump path according to the first address and the second address;
The second preset class is used for setting a browser page map.
In one embodiment, the trigger obtaining module 303 is specifically configured to invoke a third preset class to input a second address and confirm operation in a search box of the first page, so as to obtain jump trigger information;
The third preset class is used for setting browser page operation.
For specific limitations of the page jumping apparatus, reference may be made to the above limitation of the page jumping method, and no further description is given herein. The various modules in the page jumping apparatus described above may be implemented in whole or in part by software, hardware, or a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, which may be a terminal, and the internal structure of which may be as shown in fig. 4. The computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless mode can be realized through WIFI, an operator network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a page jump method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, can also be keys, a track ball or a touch pad arranged on the shell of the computer equipment, and can also be an external keyboard, a touch pad or a mouse and the like.
It will be appreciated by persons skilled in the art that the architecture shown in fig. 4 is merely a block diagram of some of the architecture relevant to the present inventive arrangements and is not limiting as to the computer device to which the present inventive arrangements are applicable, and that a particular computer device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
In one embodiment, a computer device is provided comprising a memory and a processor, the memory having stored therein a computer program, the processor when executing the computer program performing the steps of:
starting a target browser and displaying a first page in the target browser;
Acquiring a first address and a second address, and generating a jump path according to the first address and the second address; the first address is an address corresponding to the first page, and the second address is an address corresponding to the second page to be jumped;
acquiring jump trigger information based on the first page;
And responding to the jump triggering information, calling a preset function to carry out page jump processing according to the jump path, and converting the target browser from displaying the first page to displaying the second page.
In one embodiment, the preset function includes a jump function, the second page is a login page, and the processor when executing the computer program further performs the steps of:
And calling a jump function, carrying out page jump processing according to the jump path, and converting the target browser from displaying the current page to displaying the login page.
In one embodiment, the preset function includes a login function, the first page is a login page, the second page is a top page, and the processor further implements the following steps when executing the computer program:
Calling a login function, obtaining a preset login role, and selecting a corresponding login name and a login password according to the login role;
and filling the login name and the login password into a login interface, performing page jump processing, and converting the display login page into a display home page by the target browser.
In one embodiment, the preset function includes a jump function, the first page is a primary directory page, the second page is a secondary directory page, and the processor when executing the computer program further implements the steps of:
And calling a jump function, carrying out page jump processing according to the jump path, and converting the target browser from displaying the primary catalog page to displaying the secondary catalog page.
In one embodiment, the processor when executing the computer program further performs the steps of:
acquiring a preset device type and a preset browser type;
Calling a first preset class, starting a target browser corresponding to the browser type, and displaying a first page corresponding to the equipment type in the target browser;
The first preset class is used for controlling the page display of the browser.
In one embodiment, the processor when executing the computer program further performs the steps of:
Acquiring a first address corresponding to a current page displayed by a target browser and a preset second address;
calling a path generation function in a second preset class, and generating a jump path according to the first address and the second address;
The second preset class is used for setting a browser page map.
In one embodiment, the processor when executing the computer program further performs the steps of:
calling a third preset class to input a second address and a confirmation operation in a search box of the first page to obtain jump triggering information;
The third preset class is used for setting browser page operation.
In one embodiment, a computer readable storage medium is provided having a computer program stored thereon, which when executed by a processor, performs the steps of:
starting a target browser and displaying a first page in the target browser;
Acquiring a first address and a second address, and generating a jump path according to the first address and the second address; the first address is an address corresponding to the first page, and the second address is an address corresponding to the second page to be jumped;
acquiring jump trigger information based on the first page;
And responding to the jump triggering information, calling a preset function to carry out page jump processing according to the jump path, and converting the target browser from displaying the first page to displaying the second page.
In one embodiment, the predetermined function comprises a jump function, the second page being a landing page, the computer program when executed by the processor further implementing the steps of:
And calling a jump function, carrying out page jump processing according to the jump path, and converting the target browser from displaying the current page to displaying the login page.
In one embodiment, the preset function comprises a login function, the first page is a login page, the second page is a top page, and the computer program when executed by the processor further implements the steps of:
Calling a login function, obtaining a preset login role, and selecting a corresponding login name and a login password according to the login role;
and filling the login name and the login password into a login interface, performing page jump processing, and converting the display login page into a display home page by the target browser.
In one embodiment, the preset function comprises a jump function, the first page is a primary directory page, the second page is a secondary directory page, and the computer program when executed by the processor further implements the steps of:
And calling a jump function, carrying out page jump processing according to the jump path, and converting the target browser from displaying the primary catalog page to displaying the secondary catalog page.
In one embodiment, the computer program when executed by the processor further performs the steps of:
acquiring a preset device type and a preset browser type;
Calling a first preset class, starting a target browser corresponding to the browser type, and displaying a first page corresponding to the equipment type in the target browser;
The first preset class is used for controlling the page display of the browser.
In one embodiment, the computer program when executed by the processor further performs the steps of:
Acquiring a first address corresponding to a current page displayed by a target browser and a preset second address;
calling a path generation function in a second preset class, and generating a jump path according to the first address and the second address;
The second preset class is used for setting a browser page map.
In one embodiment, the computer program when executed by the processor further performs the steps of:
calling a third preset class to input a second address and a confirmation operation in a search box of the first page to obtain jump triggering information;
The third preset class is used for setting browser page operation.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, or the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory. By way of illustration, and not limitation, RAM can be in various forms such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), etc.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples illustrate only a few embodiments of the application, which are described in detail and are not to be construed as limiting the scope of the application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of protection of the present application is to be determined by the appended claims.
Claims (7)
1. A method of page jumping, the method comprising:
acquiring a preset device type and a preset browser type;
calling a first preset class, starting a target browser corresponding to the browser type, and displaying a first page corresponding to the equipment type in the target browser; the first preset class is used for controlling the page display of the browser;
acquiring a first address corresponding to the first page and a preset second address; the second address is an address corresponding to a second page to be jumped;
calling a path generation function in a second preset class, and generating a jump path according to the first address and the second address; the second preset class is used for setting a browser page map, the second preset class comprises a whole set of browser pages of different equipment types, and each set of browser pages comprises one or more of a login page, a home page, a primary catalog page and a secondary catalog page;
a third preset class is called to input the second address and the confirmation operation in a search box of the first page, and the jump triggering information is obtained; the third preset class is used for setting browser page operation; the third preset class comprises at least one browser page operation of inputting data or clearing data in a page text box, clicking enter and clicking a button control;
And responding to the jump triggering information, calling a preset function to carry out page jump processing according to the jump path, and converting the display of the first page by the target browser into the display of the second page.
2. The method of claim 1, wherein the predetermined function comprises a jump function, the second page is a login page, the calling the predetermined function performs a page jump process according to the jump path, and the target browser transitions from displaying the first page to displaying the second page, comprising:
and calling the jump function, carrying out page jump processing according to the jump path, and converting the display of the current page by the target browser into the display of the login page.
3. The method of claim 2, wherein the preset function includes a login function, the first page is the login page, the second page is a home page, the calling the preset function performs a page jump process according to the jump path, and the target browser transitions from displaying the first page to displaying the second page, including:
Calling the login function, obtaining a preset login role, and selecting a corresponding login name and a login password according to the login role;
And filling the login name and the login password into the login interface, performing page jump processing, and converting the display of the login page by the target browser into the display of the home page.
4. The method of claim 2, wherein the preset function includes a jump function, the first page is a primary directory page, the second page is a secondary directory page, the calling the preset function performs a page jump process according to the jump path, and the target browser transitions from displaying the first page to displaying the second page, including:
And calling the jump function, carrying out page jump processing according to the jump path, and converting the target browser from displaying the primary catalog page to displaying the secondary catalog page.
5. A page jumping apparatus, the apparatus comprising:
The browser opening module is used for acquiring preset equipment types and browser types; calling a first preset class, starting a target browser corresponding to the browser type, and displaying a first page corresponding to the equipment type in the target browser; the first preset class is used for controlling the page display of the browser;
The path generation module is used for acquiring a first address corresponding to the first page and a preset second address; the second address is an address corresponding to a second page to be jumped; calling a path generation function in a second preset class, and generating a jump path according to the first address and the second address; the second preset class is used for setting a browser page map, the second preset class comprises a whole set of browser pages of different equipment types, and each set of browser pages comprises one or more of a login page, a home page, a primary catalog page and a secondary catalog page;
the trigger acquisition module is used for calling a third preset class to input the second address and the confirmation operation in the search box of the first page, so as to obtain the jump trigger information; the third preset class is used for setting browser page operation; the third preset class comprises at least one browser page operation of inputting data or clearing data in a page text box, clicking enter and clicking a button control;
And the page jump module is used for responding to the jump trigger information, calling a preset function to carry out page jump processing according to the jump path, and converting the display of the first page by the target browser into the display of the second page.
6. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any of claims 1 to 4 when the computer program is executed.
7. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110852954.5A CN113672826B (en) | 2021-07-27 | 2021-07-27 | Page jump method, device, computer equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110852954.5A CN113672826B (en) | 2021-07-27 | 2021-07-27 | Page jump method, device, computer equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113672826A CN113672826A (en) | 2021-11-19 |
CN113672826B true CN113672826B (en) | 2024-07-23 |
Family
ID=78540519
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110852954.5A Active CN113672826B (en) | 2021-07-27 | 2021-07-27 | Page jump method, device, computer equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113672826B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114154099B (en) * | 2021-12-07 | 2024-07-09 | 北京达佳互联信息技术有限公司 | Routing information processing method, device, equipment and storage medium |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111459566A (en) * | 2020-03-10 | 2020-07-28 | 中国平安人寿保险股份有限公司 | Authority verification-based route loading method and related equipment |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105373474B (en) * | 2015-11-10 | 2018-07-06 | 中国建设银行股份有限公司 | A kind of test method and device for operation system |
CN107797917B (en) * | 2016-12-28 | 2020-04-17 | 平安科技(深圳)有限公司 | Performance test script generation method and device |
CN107220066B (en) * | 2017-06-28 | 2020-08-28 | 北京金山安全软件有限公司 | Method and device for releasing application software in application store |
CN107862204A (en) * | 2017-07-26 | 2018-03-30 | 平安普惠企业管理有限公司 | Method for page jump, mobile terminal and readable storage medium storing program for executing |
CN109669716A (en) * | 2018-09-25 | 2019-04-23 | 深圳壹账通智能科技有限公司 | Page control method, device, equipment and readable storage medium storing program for executing |
-
2021
- 2021-07-27 CN CN202110852954.5A patent/CN113672826B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111459566A (en) * | 2020-03-10 | 2020-07-28 | 中国平安人寿保险股份有限公司 | Authority verification-based route loading method and related equipment |
Also Published As
Publication number | Publication date |
---|---|
CN113672826A (en) | 2021-11-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109901834B (en) | Document page generation method, device, computer equipment and storage medium | |
CN108038134B (en) | Page display method and device, storage medium and electronic equipment | |
US20120197855A1 (en) | Method and Apparatus of Generating Internet Navigation Page | |
CN111563220A (en) | Business website project construction method and device, computer equipment and storage medium | |
CN108363528A (en) | Startup method, apparatus, storage medium and the electronic equipment of five application page | |
CN111596911B (en) | Method, device, computer equipment and storage medium for generating control | |
CN112130729B (en) | Page processing method and device, computer equipment and storage medium | |
CN105302811A (en) | Browser page skipping method and apparatus | |
US11157576B2 (en) | Method, system and terminal for performing search in a browser | |
CN110888709A (en) | Intelligent operation method and device of monitoring screen, computer equipment and storage medium | |
CN110659092A (en) | Webpage screenshot method and device, computer equipment and storage medium | |
CN107807841B (en) | Server simulation method, device, equipment and readable storage medium | |
CN110032493A (en) | Monitoring method, device, terminal and the readable storage medium storing program for executing of the page | |
CN112764857A (en) | Information processing method and device and electronic equipment | |
CN113760763A (en) | Software testing method, device, server and system | |
CN114461533A (en) | Method, system, electronic device and storage medium for automatic testing of Web page | |
CN113672826B (en) | Page jump method, device, computer equipment and storage medium | |
CN107102937B (en) | User interface testing method and device | |
CN110232018A (en) | Interface test method, device, computer equipment | |
KR101614470B1 (en) | Apparatus for providing search word list and method using the same | |
CN113032078A (en) | Page display method and device, electronic equipment and computer readable storage medium | |
CN109446451B (en) | Webpage display method, device, medium and computing equipment | |
CN111190574B (en) | Method, device, equipment and storage medium for selecting options of multi-stage linkage assembly | |
CN115525305A (en) | Data processing method, application starting method, device, computer equipment and storage medium | |
CN113590564A (en) | Data storage method and device, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |