CN103647775B - Method and apparatus for registration in webpage - Google Patents

Method and apparatus for registration in webpage Download PDF

Info

Publication number
CN103647775B
CN103647775B CN201310681879.6A CN201310681879A CN103647775B CN 103647775 B CN103647775 B CN 103647775B CN 201310681879 A CN201310681879 A CN 201310681879A CN 103647775 B CN103647775 B CN 103647775B
Authority
CN
China
Prior art keywords
login
label
webpage
subprocess
log
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
Application number
CN201310681879.6A
Other languages
Chinese (zh)
Other versions
CN103647775A (en
Inventor
李超
张菊元
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201310681879.6A priority Critical patent/CN103647775B/en
Publication of CN103647775A publication Critical patent/CN103647775A/en
Application granted granted Critical
Publication of CN103647775B publication Critical patent/CN103647775B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a method and apparatus for registration in a webpage. The method comprises: a master process starting a slave process and sending information of a target webpage to be registered currently to the slave process; the slave process obtaining a registration configuration rule corresponding to target webpage identification; the slave process, according to the registration configuration rule, loading the target webpage corresponding to the target webpage identification; the slave process performing positioning on elements in the target webpage to determine a registration object; and filling registration information corresponding to registration information identification in the registration object. Compared to a conventional table filling registration method in the prior art, the registration method provided by the embodiments of the invention can enable a user to simultaneously register one webpage by use of multiple different account numbers and passwords.

Description

A kind of method and apparatus being logged in webpage
Technical field
The present invention relates to communication technical field is and in particular to a kind of method and apparatus being logged in webpage.
Background technology
Internet technology has deeply affected the life of people at present, and E-mail address, forum, web game etc. are also Become an indispensable part in people's routine work and amusement.But above-mentioned internet, applications mostly need user's registration and step on Could use after record, therefore user needs to remember substantial amounts of username and password.For the safety of account number, user generally also needs to Setting complex digital, alphabetical, the password of special symbol combination, increase the difficulty of memory further, log in each When also need to manually enter, everything undoubtedly the use to user cause burden.Webpage automatic form filling is exactly to solve this to ask The technology of topic, it can preserve the username and password that user inputs in webpage, opens same web page in upper once user When, automatically help user to fill in the username and password of preservation, user need not remember again and fill in substantial amounts of username and password, More easily random using various Internet resources and service.
Prior art, can be by the login account of user, login when carrying out automatic form filling using browser to a website Password is saved in the cookie of client, when user opens login page, extracts login account, close from cookie information Code is filled in the input frame of webpage.But, the log-on message of user can be saved in by existing browser after the user logs In session, when user uses another account, password login website, login account before, password can be nullified, that is, same In one moment, user is only allowed to use account, a password login.
Content of the invention
In view of the above problems it is proposed that the present invention so as to provide one kind overcome the problems referred to above or at least in part solve on State a kind of method and apparatus being logged in webpage of problem.
According to one aspect of the present invention, there is provided a kind of method being logged in webpage, comprising:
Host process starts a subprocess, and sends target web information currently to be logged in described subprocess, described Target web information includes target web mark, log-on message mark;
Subprocess obtains the corresponding login configurations rule of described target web mark;
Subprocess loads described target web according to described login configurations rule and identifies corresponding target web;
Subprocess carries out positioning and determines login object to the element in described target web;
The described log-on message corresponding log-on message of mark is filled in described login object, told log-on message includes Login account information and/or login password information.
Alternatively, described subprocess loads described target web according to described login configurations rule and identifies corresponding webpage, Specifically include:
Subprocess judges whether include previous step in described login configurations rule, if including, according to described login configurations Rule executes described previous step.
Alternatively,
Described according to described login configurations rule execution previous step, specifically include:
Load in described previous step default preposition url and/or execute default in described previous step Javascript script.
Alternatively, described subprocess obtains the corresponding login configurations rule of described target web mark, specifically includes:
Subprocess mates the first allocation list, described first configuration according to the login url in info web currently to be accessed Table includes webpage url classification and corresponding second allocation list mark;
Subprocess obtains corresponding login configurations rule according to the second allocation list mark matching from the second allocation list.
Alternatively, methods described also includes:
Subprocess judges whether the login object in described webpage includes login button, if including, described login is pressed Button executes clicking operation.
Alternatively, before the described execution clicking operation to login button, also include:
Subprocess judges login object in described webpage whether bag check code input frame, if including, terminates currently to grasp Make.
Alternatively, the described rear that login button is executed with clicking operation, also includes:
Subprocess judges whether include rearmounted step in described login configurations rule, if including, according to described login configurations Rule executes described rearmounted step.
Alternatively, described according to described login configurations rule execute rearmounted step, specifically include:
Load in described rearmounted step default rearmounted url and/or execute default in described rearmounted step Javascript script.
Alternatively, described positioning that element in described target web is carried out determines login object, specifically includes:
The whole label objects obtaining in webpage generate tag set;
According to the public attribute of label object in described tag set, described label object is grouped, from described point The result of group obtains one or more packets label;
Parse mapping table according to preset tab file, the label object in the one or more of packet labels of coupling Attribute;
Determine that the packet label matching is to log in object.
Alternatively, the public attribute according to label object in described tag set is grouped to described label object, bag Include:
The label object in tag set with identical father node is placed in same packet label.
Alternatively, the described result from described packet also includes after obtaining one or more packets label:
Packet label is grouped again, specifically includes:
Judge one or more packets label in current group result;
If current group label comprises two or more label objects, and described two or multiple label object does not have phase Same father node, then the label object in current group label with identical father node is placed in another packet label;
Steps be repeated alternatively until that current group label can not be grouped again.
Alternatively, described label object is<input>input frame;
The described label pair parsing mapping table according to preset tab file, mating in one or more of packet labels The attribute of elephant also includes:
If containing only 1 Password Input frame in current group label, and it is located at the described Password Input frame subordinate brotgher of node Label object be not Text Entry, then current group label be logon form;
The packet label that described determination matches is to log in object, specifically includes:
The element of described logon form is to log in object;Text Entry in described logon form inputs for login account Frame, the Password Input frame in described logon form is login password input frame.
Alternatively, before described son enters the login object in described webpage is positioned, also include:
Login process mark is set to start;
Described by corresponding log-on message be filled into described login object in after, also include:
Login process mark is set to terminate.
According to another aspect of the present invention, additionally provide a kind of device being logged in webpage, comprising: host process Module, subprocess module;
Described host process module includes:
Subprocess starting module, for starting a subprocess, and sends target currently to be logged in described subprocess Info web, described target web information includes target web mark, log-on message mark;
Described subprocess module includes:
Login configurations rule acquisition module, for obtaining target web mark corresponding login configurations rule;
Webpage load-on module, identifies corresponding webpage for loading described target web according to described login configurations rule;
Log in object determining module, determine login object for the element in described target web is carried out with positioning;
Log-on message fills module, right for the described log-on message corresponding log-on message of mark is filled into described login As in, told log-on message includes login account information and/or login password information.
Alternatively,
Described webpage load-on module, is specifically additionally operable to judge whether include previous step in described login configurations rule, if Including according to the described login configurations rule described previous step of execution.
Alternatively,
Described webpage load-on module, is specifically additionally operable to load default preposition url and/or execution institute in described previous step State default javascript script in previous step.
Alternatively, described login configurations rule acquisition module, specifically for according in info web currently to be accessed Log in url and mate the first allocation list, described first allocation list includes webpage url classification and corresponding second allocation list mark; The second allocation list mark according to matching obtains corresponding login configurations rule from the second allocation list.
Alternatively, described subprocess module also includes:
Module clicked on by button, for judging whether the login object in described webpage includes login button, if including, right Described login button executes clicking operation.
Alternatively, described subprocess module, also includes:
Verification input module, for judging the whether bag check code input frame of the login object in described webpage, if including, Terminate current operation.
Alternatively, described subprocess module, also includes:
Rearmounted step block, for judging whether include rearmounted step in described login configurations rule, if include, according to institute State login configurations rule and execute described rearmounted step.
Alternatively, described rearmounted step block, specifically for: load described rearmounted step in default rearmounted url and/or Execute default javascript script in described rearmounted step.
Alternatively, described login object determining module, specifically for:
The whole label objects obtaining in webpage generate tag set;
According to the public attribute of label object in described tag set, described label object is grouped, from described point The result of group obtains one or more packets label;
Parse mapping table according to preset tab file, the label object in the one or more of packet labels of coupling Attribute;
Determine that the packet label matching is to log in object.
Alternatively, the described public attribute according to label object in described tag set for the object determining module that logs in is to described Label object is grouped, and specifically includes: the label object in tag set with identical father node is placed in same packet mark In signing.
Alternatively, described login object determining module is additionally operable to:
Packet label is grouped again, specifically includes:
Judge one or more packets label in current group result;
If current group label comprises two or more label objects, and described two or multiple label object does not have phase Same father node, then the label object in current group label with identical father node is placed in another packet label;
Steps be repeated alternatively until that current group label can not be grouped again.
Alternatively, described label object is<input>input frame;
The described object determining module that logs in parses mapping table according to preset tab file, mates one or more of points The attribute of the label object in group label is additionally operable to:
If containing only 1 Password Input frame in current group label, and it is located at the described Password Input frame subordinate brotgher of node Label object be not Text Entry, then current group label be logon form;
The described object determining module that logs in determines that the packet label matching is to log in object, specifically for:
The element of described logon form is to log in object;Text Entry in described logon form inputs for login account Frame, the Password Input frame in described logon form is login password input frame.
Alternatively, described subprocess module also includes:
Login process status indication module, before the login object in described webpage is positioned, will log in stream Journey mark is set to start;And after corresponding log-on message being filled in described login object, by login process mark Know and be set to terminate
Technical scheme provided in an embodiment of the present invention at least brings following technique effect:
Prior art when being logged in a website using browser client, can by current login account, step on Record password is saved in the cookie of client, when user uses another account, password login website, can be by login before Account, password are nullified, i.e. synchronization, only allow user to use account, a password login.In the embodiment of the present invention, master enters The different logging request that journey is directed to same website start corresponding multiple subprocess, and each subprocess is in its each self-corresponding son Load login page in window respectively, and logged in using different login accounts, login password, and by different logins Account, login password are stored respectively by different directories, realize many accounts of same website are logged in simultaneously.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention, And can be practiced according to the content of description, and in order to allow the above and other objects of the present invention, feature and advantage can Become apparent, below especially exemplified by the specific embodiment of the present invention.
Brief description
By reading the detailed description of hereafter preferred implementation, various other advantages and benefit are common for this area Technical staff will be clear from understanding.Accompanying drawing is only used for illustrating the purpose of preferred implementation, and is not considered as to the present invention Restriction.And in whole accompanying drawing, it is denoted by the same reference numerals identical part.In the accompanying drawings:
Fig. 1 shows the flow chart of steps of the method being logged in a kind of webpage according to an embodiment of the invention;
Fig. 2 shows the flow chart of steps of the method being logged in a kind of webpage according to an embodiment of the invention;
Fig. 3 shows in the method being logged in a kind of webpage according to an embodiment of the invention and steps in determination webpage The flow chart of steps of the method for record object;
Fig. 4 shows the structural representation of the device being logged in a kind of webpage according to an embodiment of the invention.
Specific embodiment
It is more fully described the exemplary embodiment of the disclosure below with reference to accompanying drawings.Although showing the disclosure in accompanying drawing Exemplary embodiment it being understood, however, that may be realized in various forms the disclosure and should not be by embodiments set forth here Limited.On the contrary, these embodiments are provided to be able to be best understood from the disclosure, and can be by the scope of the present disclosure Complete conveys to those skilled in the art.
Embodiment one
With reference to Fig. 1, Fig. 1 shows the method being logged in a kind of webpage provided in an embodiment of the present invention, methods described Including:
S101, host process starts a subprocess, and sends target web information currently to be logged in described subprocess, Described target web information includes target web mark, log-on message mark.
In the embodiment of the present invention, host process starts corresponding subprocess according to the logging request that user sends, and every height enters It is corresponding that journey loads described target web mark according to the target web mark receiving in its corresponding browser subwindow Webpage, this webpage includes the login object for logging in, for example: user name input frame, Password Input frame, login button etc.. To each browser subwindow described, register can be carried out using different log-on messages in described browser subwindow, Described log-on message includes login account and/or login password.
Wherein, the target web in target web information identify for one webpage of unique mark it is however generally that, it is permissible It is webpage url, in addition can also be the identification information by certain rule settings, the present invention is not specifically limited to this.
Wherein, the corresponding log-on message of log-on message mark, comprising: login account, login password etc..
S102, subprocess obtains the corresponding login configurations rule of described target web mark.
Wherein, described login configurations rule specifically includes: previous step and/or rearmounted step.
Further, described previous step specifically includes: loads default preposition url and/or hold in described previous step Default javascript script in the described previous step of row.
Further, described rearmounted step specifically includes: loads default rearmounted url and/or hold in described rearmounted step Default javascript script in the described rearmounted step of row.
For the register of different web pages, the login step flow process of its setting may be different, the embodiment of the present invention according to In webpage, the concrete operations flow process logging in object is determined and store with corresponding login configurations rule, whether includes preposition step Suddenly, rearmounted step or other registers.
In addition, described login configurations rule may also include other operating processes corresponding with described webpage register and moves Make, or when being logged according to webpage by those skilled in the art be actually needed determination other configurations regular, the present invention is to stepping on The content of record configuration rule is not specifically limited.
S103, subprocess loads described target web according to described login configurations rule and identifies corresponding webpage.
Further, described subprocess loads described target web according to described login configurations rule and identifies corresponding net Page, specifically includes: subprocess judges whether include previous step in described login configurations rule, if including, according to described login Configuration rule executes described previous step;Subprocess loads described target web in corresponding subwindow and identifies corresponding target Webpage.
S104, subprocess carries out positioning and determines login object to the element in described target web.
Wherein, positioning determines that logging in object is login account input frame in locating web-pages, login password input frame, check code Input frame, login button or other login particular location in webpage for the object.
S105, log-on message is identified corresponding log-on message and is filled in described login object, told log-on message bag Include login account information and/or login password information.
Prior art when being logged in a website using browser client, can by current login account, step on Record password is saved in the cookie of client, when user uses another account, password login website, can be by login before Account, password are nullified, i.e. synchronization, only allow user to use account, a password login.In the embodiment of the present invention, master enters The different logging request that journey is directed to same website start corresponding multiple subprocess, and each subprocess is in its each self-corresponding son Load login page in window respectively, and logged in using different login accounts, login password, and by different logins Account, login password are stored respectively by different directories, realize many accounts of same website are logged in simultaneously.
Secondly, the present invention implements the login process setting login configurations rule according to different web sites, and according to this configuration rule Then load corresponding webpage so that the register to described webpage for the loading procedure Complete Mappings user of this webpage, even if should Webpage is provided with previous step, also can guarantee that normally effectively loading of this webpage.Further, by the login in locating web-pages Object, the login account of user, login password are filled in login object, it is to avoid system is because waiting user input to log in letter The breath spent time, reduce the resource consumption of system.
Embodiment two
With reference to Fig. 2, Fig. 2 shows the method being logged in a kind of webpage provided in an embodiment of the present invention, methods described Including:
S201, host process starts a subprocess, and sends target web information currently to be logged in described subprocess, Described target web information includes target web mark, log-on message mark.
S202, subprocess obtains the corresponding login configurations rule of described target web mark.
Further, this step specifically includes:
Host process mates the first allocation list, described first configuration according to the login url in info web currently to be accessed Table includes webpage url classification and corresponding second allocation list mark;
The second allocation list mark according to matching obtains corresponding login configurations rule from the second allocation list.
Wherein, the login configurations rule physical record mating that identified with described target web of the second allocation list storage is somebody's turn to do Target web identifies the register flow process of place webpage, for example: the need of execution previous step, comprising: access preposition Url, the preposition javascript script of execution etc.;Specifically how to fill in a form, how to log in during execution login step;And execute login Afterwards the need of the rearmounted step of execution, comprising: execute rearmounted url, execute rearmounted javascript script etc..
Wherein, the first allocation list is that the corresponding login configurations rule of login url acquisition mating target web provides rope Draw so that the time mating login configurations rule reduces further.
S203, login process mark is set to start.
S204, subprocess judges whether include previous step in described login configurations rule, if including, according to described login Configuration rule executes described previous step.
Wherein, according to described login configurations rule execution previous step, specifically include:
Load in described previous step default preposition url and/or execute default in described previous step Javascript script.
S205, subprocess loads described target web in corresponding subwindow and identifies corresponding target web.
S206, subprocess carries out positioning and determines login object to the element in target web.
S207, log-on message is identified corresponding log-on message and is filled in described login object by subprocess, told login Information includes login account information and/or login password information.
S208, subprocess judges login object in described webpage whether bag check code input frame, if including, terminates to work as Front operation.
This step is optional step, if those skilled in the art can determine that to check code input frame when implementing the present invention Identification has certain success rate then negligible step.
S209, subprocess judges whether the login object in described webpage includes login button, if including, steps on to described Record button execution clicking operation.
S210, subprocess judges whether include rearmounted step in described login configurations rule, if including, according to described login Configuration rule executes described rearmounted step.
Wherein, execute rearmounted step according to login configurations rule, specifically include:
Load in described rearmounted step default rearmounted url and/or execute default in described rearmounted step Javascript script.
By executing rearmounted step, specify rearmounted can be jumped to after login step is executed to the webpage in current window url.
S211, login process mark is set to terminate.
In the above-described embodiments, by execution previous step and/or rearmounted step before login step so that entering to webpage The register Complete Mappings user of row has been manually done motion flow during register, it is to avoid default in website log in limit System, improves the success rate of login.
Wherein, step s203, s211 is optional step.By arranging the current subprocess of login process identification record to webpage Login process state, login process is designated to the subprocess of end, login is no longer executed to the webpage in its subwindow Information filling and login button clicking operation, effectively prevent repeat logon, have saved system resource.
In the above embodiment of the present invention, first pass through and the element in webpage is carried out with positioning determination login object, then right How described login object filling log-on message, therefore, be accurately positioned and determine that login is had to liking above-described embodiment The premise that effect is implemented, for this reason, determine, the invention provides carrying out to the element in target web positioning, the concrete side logging in object Method, comprising:
S301, the whole label objects obtaining in webpage generate tag set.
Wherein, described label object is<input>input frame.
S302, according to the public attribute of label object in described tag set, is grouped to described label object, from institute The result stating packet obtains one or more packets label.
Wherein, the public attribute according to label object in described tag set, carries out packet concrete to described label object Including: the label object in tag set with identical father node is placed in same packet label.
S303, packet label is grouped again.
This step specifically includes:
Judge one or more packets label in current group result;
If current group label comprises two or more label objects, and described two or multiple label object does not have phase Same father node, then the label object in current group label with identical father node is placed in another packet label;
Steps be repeated alternatively until that current group label can not be grouped again.
S303, parses mapping table according to preset tab file, mates the label in one or more of packet labels The attribute of object.
The described label pair parsing mapping table according to preset tab file, mating in one or more of packet labels The attribute of elephant, specifically includes:
If containing only 1 Password Input frame in current group label, and it is located at the described Password Input frame subordinate brotgher of node Label object be not Text Entry, then current group label be logon form.
S304, determines that the packet label matching is to log in object.
Wherein it is determined that the packet label matching is to log in object, specifically include:
The element of described logon form is to log in object;Text Entry in described logon form inputs for login account Frame, the Password Input frame in described logon form is login password input frame.
For<input>input frame in webpage, not all of Password Input frame is just necessarily logged on object, for example, Can there is logon form, enrollment form, password replacement list etc., so, if only in the different frame of a lot of webpages simultaneously Then it is easy to occur Wrong localization according to whether comprising Password Input and confining position login object, therefore, the embodiment of the present invention is passed through The label object in webpage with identical father node is placed in same packet label, then packet label is grouped again, and Determine the logon form in webpage according to tab file parsing mapping table, the accuracy logging in object positioning can be greatly improved.
Further, the object that logs in locating web-pages is not limited by logging in object attribute itself according to the method described above, Even if website is changed to the id of login object, title, positional information in log-on webpage, login still can be accurately positioned out Object, it is to avoid in prior art, technical staff must greatly reduce according to the problem of the content modification locating rule of website Artificial and maintenance cost.
In another extension embodiment of the present invention, described login configurations rule also includes: white list.Described subprocess pair Element in target web carries out positioning and determines that logging in object also includes: subprocess is carried out to the element in webpage according to white list Positioning determines login object.In described white list, Password Input frame, login button are configured according to the title of element, id in webpage For the login object determining.When positioning logs in object, the information being first depending on configuration in described white list determines that login is right As if positioning unsuccessfully, then being positioned according to subsequent step.Due to being configured with login object properties in webpage in white list Information, therefore can directly be positioned, it is to avoid log in required big in Object Process in subsequent step by labeled packet positioning Amount computing and matching operation, greatly reduce system resources consumption.
Embodiment three
Referring to Fig. 4, Fig. 4 shows that a kind of structure of device being logged in webpage provided in an embodiment of the present invention is shown It is intended to, described device includes: host process module 410, subprocess module 420;
Described host process module 410 includes:
Subprocess starting module 411, for starting a subprocess, and sends mesh currently to be logged in described subprocess Mark info web, described target web information includes target web mark, log-on message mark;
Described subprocess module 420 includes:
Login configurations rule acquisition module 421, for obtaining target web mark corresponding login configurations rule;
Webpage load-on module 422, identifies corresponding net for loading described target web according to described login configurations rule Page;
Log in object determining module 423, determine login object for the element in described target web is carried out with positioning;
Log-on message fill module 424, for by described log-on message mark corresponding log-on message be filled into described in step on In record object, told log-on message includes login account information and/or login password information.
Wherein, whether described webpage load-on module 422, be specifically additionally operable to judge to include in described login configurations rule preposition Step, if including, executes described previous step according to described login configurations rule.
Wherein, described webpage load-on module 422, be specifically additionally operable to load in described previous step default preposition url and/ Or execute default javascript script in described previous step.
Wherein, described login configurations rule acquisition module 421, specifically for according in info web currently to be accessed Log in url and mate the first allocation list, described first allocation list includes webpage url classification and corresponding second allocation list mark; The second allocation list mark according to matching obtains corresponding login configurations rule from the second allocation list.
Wherein, described subprocess module 420 also includes:
Module 425 clicked on by button, for judging whether the login object in described webpage includes login button, if including, Then clicking operation is executed to described login button.
Wherein, described subprocess module 420, also includes:
Verification input module 426, for judging the whether bag check code input frame of the login object in described webpage, if bag Include, then terminate current operation.
Wherein, described subprocess module 420, also includes:
Rearmounted step block 427, for judging whether include rearmounted step in described login configurations rule, if including, presses Execute described rearmounted step according to described login configurations rule.
Wherein, described rearmounted step block 427, specifically for: load described rearmounted step in default rearmounted url and/ Or execute default javascript script in described rearmounted step.
Wherein, described login object determining module 423, specifically for:
The whole label objects obtaining in webpage generate tag set;
According to the public attribute of label object in described tag set, described label object is grouped, from described point The result of group obtains one or more packets label;
Parse mapping table according to preset tab file, the label object in the one or more of packet labels of coupling Attribute;
Determine that the packet label matching is to log in object.
Wherein, the described public attribute according to label object in described tag set for the object determining module 423 that logs in is to institute State label object to be grouped, specifically include: the label object in tag set with identical father node is placed in same packet In label.
Wherein, described login object determining module 423 is additionally operable to:
Packet label is grouped again, specifically includes:
Judge one or more packets label in current group result;
If current group label comprises two or more label objects, and described two or multiple label object does not have phase Same father node, then the label object in current group label with identical father node is placed in another packet label;
Steps be repeated alternatively until that current group label can not be grouped again.
Wherein, described label object is<input>input frame;
The described object determining module 423 that logs in parses mapping table according to preset tab file, and coupling is one or many The attribute of the label object in individual packet label is additionally operable to:
If containing only 1 Password Input frame in current group label, and it is located at the described Password Input frame subordinate brotgher of node Label object be not Text Entry, then current group label be logon form;
The described object determining module that logs in determines that the packet label matching is to log in object, specifically for:
The element of described logon form is to log in object;Text Entry in described logon form inputs for login account Frame, the Password Input frame in described logon form is login password input frame.
Wherein, 420 pieces of described subprocess mould also includes:
Login process status indication module 428, before the login object in described webpage is positioned, will log in Process identification is set to start;And after corresponding log-on message being filled in described login object, by login process Mark is set to terminate.
Algorithm and display be not inherently related to any certain computer, virtual system or miscellaneous equipment provided herein. Various general-purpose systems can also be used together with based on teaching in this.As described above, construct required by this kind of system Structure be obvious.Additionally, the present invention is also not for any certain programmed language.It is understood that, it is possible to use various Programming language realizes the content of invention described herein, and the description above language-specific done is to disclose this Bright preferred forms.
In description mentioned herein, illustrate a large amount of details.It is to be appreciated, however, that the enforcement of the present invention Example can be put into practice in the case of not having these details.In some instances, known method, structure are not been shown in detail And technology, so as not to obscure the understanding of this description.
Similarly it will be appreciated that in order to simplify the disclosure and help understand one or more of each inventive aspect, Above in the description to the exemplary embodiment of the present invention, each feature of the present invention is grouped together into single enforcement sometimes In example, figure or descriptions thereof.However, the method for the disclosure should be construed to reflect an intention that i.e. required guarantor The application claims of shield more features than the feature being expressly recited in each claim.More precisely, it is such as following Claims reflected as, inventive aspect is all features less than single embodiment disclosed above.Therefore, The claims following specific embodiment are thus expressly incorporated in this specific embodiment, wherein each claim itself All as the separate embodiments of the present invention.
Those skilled in the art are appreciated that and the module in the equipment in embodiment can be carried out adaptively Change and they are arranged in one or more equipment different from this embodiment.Can be the module in embodiment or list Unit or assembly be combined into a module or unit or assembly, and can be divided in addition multiple submodule or subelement or Sub-component.In addition to such feature and/or at least some of process or unit exclude each other, can adopt any Combination is to all features disclosed in this specification (including adjoint claim, summary and accompanying drawing) and so disclosed Where method or all processes of equipment or unit are combined.Unless expressly stated otherwise, this specification (includes adjoint power Profit requires, summary and accompanying drawing) disclosed in each feature can carry out generation by the alternative features providing identical, equivalent or similar purpose Replace.
Although additionally, it will be appreciated by those of skill in the art that some embodiments described herein include other embodiments In included some features rather than further feature, but the combination of the feature of different embodiment means to be in the present invention's Within the scope of and form different embodiments.For example, in the following claims, embodiment required for protection appoint One of meaning can in any combination mode using.
The all parts embodiment of the present invention can be realized with hardware, or to run on one or more processor Software module realize, or with combinations thereof realize.It will be understood by those of skill in the art that can use in practice Microprocessor or digital signal processor (dsp) are realizing in the device being logged in webpage according to embodiments of the present invention Some or all parts some or all functions.The present invention is also implemented as executing side as described herein Some or all equipment of method or program of device (for example, computer program and computer program).Such The program realizing the present invention can store on a computer-readable medium, or can have the shape of one or more signal Formula.Such signal can be downloaded from internet website and obtain, or provides on carrier signal, or with any other shape Formula provides.
It should be noted that above-described embodiment the present invention will be described rather than limits the invention, and ability Field technique personnel can design alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference markss between bracket should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not Element listed in the claims or step.Word "a" or "an" before element does not exclude the presence of multiple such Element.The present invention can come real by means of the hardware including some different elements and by means of properly programmed computer Existing.If in the unit claim listing equipment for drying, several in these devices can be by same hardware branch To embody.The use of word first, second, and third does not indicate that any order.These words can be explained and run after fame Claim.
The embodiment of the invention also discloses a1, a kind of method being logged in webpage, comprising:
Host process starts a subprocess, and sends target web information currently to be logged in described subprocess, described Target web information includes target web mark, log-on message mark;
Subprocess obtains the corresponding login configurations rule of described target web mark;
Subprocess loads described target web according to described login configurations rule and identifies corresponding target web;
Subprocess carries out positioning and determines login object to the element in described target web;
The described log-on message corresponding log-on message of mark is filled in described login object, told log-on message includes Login account information and/or login password information.
A2, the method as described in a1, described subprocess loads described target web mark according to described login configurations rule Corresponding webpage, specifically includes:
Subprocess judges whether include previous step in described login configurations rule, if including, according to described login configurations Rule executes described previous step.
A3, the method as described in a2,
Described according to described login configurations rule execution previous step, specifically include:
Load in described previous step default preposition url and/or execute default in described previous step Javascript script.
A4, the method as described in a1, described subprocess obtains the corresponding login configurations rule of described target web mark, tool Body includes:
Subprocess mates the first allocation list, described first configuration according to the login url in info web currently to be accessed Table includes webpage url classification and corresponding second allocation list mark;
Subprocess obtains corresponding login configurations rule according to the second allocation list mark matching from the second allocation list.
A5, the method as described in a1, methods described also includes:
Subprocess judges whether the login object in described webpage includes login button, if including, described login is pressed Button executes clicking operation.
A6, the method as described in a5, before the described execution clicking operation to login button, also include:
Subprocess judges login object in described webpage whether bag check code input frame, if including, terminates currently to grasp Make.
A7, the method as described in a5 or a6, the described rear that login button is executed with clicking operation, also include:
Subprocess judges whether include rearmounted step in described login configurations rule, if including, according to described login configurations Rule executes described rearmounted step.
A8, the method as described in a7, described according to described login configurations rule execute rearmounted step, specifically include:
Load in described rearmounted step default rearmounted url and/or execute default in described rearmounted step Javascript script.
A9, the method as described in a1, described positioning that element in described target web is carried out determines login object, specifically Including:
The whole label objects obtaining in webpage generate tag set;
According to the public attribute of label object in described tag set, described label object is grouped, from described point The result of group obtains one or more packets label;
Parse mapping table according to preset tab file, the label object in the one or more of packet labels of coupling Attribute;
Determine that the packet label matching is to log in object.
A10, the method as described in a9, the public attribute according to label object in described tag set is to described label object It is grouped, comprising:
The label object in tag set with identical father node is placed in same packet label.
A11, the method as described in a10, the described result from described packet is gone back after obtaining one or more packets label Including:
Packet label is grouped again, specifically includes:
Judge one or more packets label in current group result;
If current group label comprises two or more label objects, and described two or multiple label object does not have phase Same father node, then the label object in current group label with identical father node is placed in another packet label;
Steps be repeated alternatively until that current group label can not be grouped again.
A12, the method as described in a11, described label object is<input>input frame;
The described label pair parsing mapping table according to preset tab file, mating in one or more of packet labels The attribute of elephant also includes:
If containing only 1 Password Input frame in current group label, and it is located at the described Password Input frame subordinate brotgher of node Label object be not Text Entry, then current group label be logon form;
The packet label that described determination matches is to log in object, specifically includes:
The element of described logon form is to log in object;Text Entry in described logon form inputs for login account Frame, the Password Input frame in described logon form is login password input frame.
A13, the method as described in a1, before described son enters the login object in described webpage is positioned, also include:
Login process mark is set to start;
Described by corresponding log-on message be filled into described login object in after, also include:
Login process mark is set to terminate.
The embodiment of the invention also discloses b14, a kind of device being logged in webpage, comprising: host process module, son Scheduler module;
Described host process module includes:
Subprocess starting module, for starting a subprocess, and sends target currently to be logged in described subprocess Info web, described target web information includes target web mark, log-on message mark;
Described subprocess module includes:
Login configurations rule acquisition module, for obtaining target web mark corresponding login configurations rule;
Webpage load-on module, identifies corresponding webpage for loading described target web according to described login configurations rule;
Log in object determining module, determine login object for the element in described target web is carried out with positioning;
Log-on message fills module, right for the described log-on message corresponding log-on message of mark is filled into described login As in, told log-on message includes login account information and/or login password information.
B15, the device as described in b14,
Described webpage load-on module, is specifically additionally operable to judge whether include previous step in described login configurations rule, if Including according to the described login configurations rule described previous step of execution.
B16, the device as described in b15,
Described webpage load-on module, is specifically additionally operable to load default preposition url and/or execution institute in described previous step State default javascript script in previous step.
B17, the device as described in b14, described login configurations rule acquisition module, specifically for according to currently to be accessed Login url in info web mates the first allocation list, and described first allocation list includes webpage url classification and corresponding second Allocation list identifies;The second allocation list mark according to matching obtains corresponding login configurations rule from the second allocation list.
B18, the device as described in b14, described subprocess module also includes:
Module clicked on by button, for judging whether the login object in described webpage includes login button, if including, right Described login button executes clicking operation.
B19, the device as described in b18, described subprocess module, also include:
Verification input module, for judging the whether bag check code input frame of the login object in described webpage, if including, Terminate current operation.
B20, the device as described in b14 or b15, described subprocess module, also include:
Rearmounted step block, for judging whether include rearmounted step in described login configurations rule, if include, according to institute State login configurations rule and execute described rearmounted step.
B21, the device as described in b20, described rearmounted step block, specifically for: load default in described rearmounted step Rearmounted url and/or execute described rearmounted step in default javascript script.
B22, the device as described in b14, described login object determining module, specifically for:
The whole label objects obtaining in webpage generate tag set;
According to the public attribute of label object in described tag set, described label object is grouped, from described point The result of group obtains one or more packets label;
Parse mapping table according to preset tab file, the label object in the one or more of packet labels of coupling Attribute;
Determine that the packet label matching is to log in object.
B23, the device as described in b22, described login object determining module is according to label object in described tag set Public attribute is grouped to described label object, specifically includes: will have the label object of identical father node in tag set It is placed in same packet label.
B24, the device as described in b22, described login object determining module is additionally operable to:
Packet label is grouped again, specifically includes:
Judge one or more packets label in current group result;
If current group label comprises two or more label objects, and described two or multiple label object does not have phase Same father node, then the label object in current group label with identical father node is placed in another packet label;
Steps be repeated alternatively until that current group label can not be grouped again.
B25, the device as described in b22, described label object is<input>input frame;
The described object determining module that logs in parses mapping table according to preset tab file, mates one or more of points The attribute of the label object in group label is additionally operable to:
If containing only 1 Password Input frame in current group label, and it is located at the described Password Input frame subordinate brotgher of node Label object be not Text Entry, then current group label be logon form;
The described object determining module that logs in determines that the packet label matching is to log in object, specifically for:
The element of described logon form is to log in object;Text Entry in described logon form inputs for login account Frame, the Password Input frame in described logon form is login password input frame.
B26, the device as described in b22, described subprocess module also includes:
Login process status indication module, before the login object in described webpage is positioned, will log in stream Journey mark is set to start;And after corresponding log-on message being filled in described login object, by login process mark Know and be set to terminate.

Claims (24)

1. a kind of method being logged in webpage, comprising:
Host process starts a subprocess, and sends target web information currently to be logged in, described target to described subprocess Info web includes target web mark, log-on message mark;
Subprocess obtains described target web mark corresponding login configurations rule, specifically includes: subprocess is according to currently will visiting In the info web asked log-on webpage mark coupling the first allocation list, described first allocation list includes banner classification with Corresponding second allocation list mark;Subprocess obtains corresponding from the second allocation list according to the second allocation list mark matching Login configurations rule;This target web of described login configurations regular record identifies the register flow process of place webpage;
Subprocess loads described target web according to described login configurations rule and identifies corresponding target web;
Subprocess carries out positioning and determines login object to the element in described target web;
The described log-on message corresponding log-on message of mark is filled in described login object, told log-on message includes logging in Account information and/or login password information.
2. the method for claim 1 is it is characterised in that described subprocess is described according to the rule loading of described login configurations Target web identifies corresponding webpage, specifically includes:
Subprocess judges whether include previous step in described login configurations rule, if including, according to described login configurations rule Execute described previous step.
3. method as claimed in claim 2 it is characterised in that
Described according to described login configurations rule execution previous step, specifically include:
Load in described previous step default preposition url and/or execute default javascript foot in described previous step This.
4. the method for claim 1 is it is characterised in that methods described also includes:
Subprocess judges whether the login object in described webpage includes login button, if including, described login button is held Row clicking operation.
5. method as claimed in claim 4, before the described execution clicking operation to login button, also includes:
Subprocess judges whether the login object in described webpage includes check code input frame, if including, terminates current operation.
6. the method as described in claim 4 or 5, the described rear that login button is executed with clicking operation, also include:
Subprocess judges whether include rearmounted step in described login configurations rule, if including, according to described login configurations rule Execute described rearmounted step.
7. method as claimed in claim 6, described according to described login configurations rule execute rearmounted step, specifically include:
Load in described rearmounted step default rearmounted url and/or execute default javascript foot in described rearmounted step This.
8. the method for claim 1, described positioning that element in described target web is carried out determines login object, tool Body includes:
The whole label objects obtaining in webpage generate tag set;
According to the public attribute of label object in described tag set, described label object is grouped, from described packet Result obtains one or more packets label;
Parse mapping table according to preset tab file, mate the genus of the label object in one or more of packet labels Property;
Determine that the packet label matching is to log in object.
9. method as claimed in claim 8, the public attribute according to label object in described tag set is to described label pair As being grouped, comprising:
The label object in tag set with identical father node is placed in same packet label.
10. method as claimed in claim 9, the described result from described packet is gone back after obtaining one or more packets label Including:
Packet label is grouped again, specifically includes:
Judge one or more packets label in current group result;
If current group label comprises two or more label objects, and described two or multiple label object does not have identical Father node, then the label object in current group label with identical father node is placed in another packet label;
Steps be repeated alternatively until that current group label can not be grouped again.
11. methods as claimed in claim 10, described label object is<input>input frame;
The described label object parsing mapping table according to preset tab file, mating in one or more of packet labels Attribute also include:
If containing only 1 Password Input frame in current group label, and it is located at the mark of the described Password Input frame subordinate brotgher of node Signing object is not Text Entry, then current group label is logon form;
The packet label that described determination matches is to log in object, specifically includes:
The element of described logon form is to log in object;Text Entry in described logon form is login account input frame, Password Input frame in described logon form is login password input frame.
12. the method for claim 1, before described son enters the login object in described webpage is positioned, also wrap Include:
Login process mark is set to start;
Described by corresponding log-on message be filled into described login object in after, also include:
Login process mark is set to terminate.
13. a kind of devices being logged in webpage, comprising: host process module, subprocess module;
Described host process module includes:
Subprocess starting module, for starting a subprocess, and sends target web currently to be logged in described subprocess Information, described target web information includes target web mark, log-on message mark;
Described subprocess module includes:
Login configurations rule acquisition module, for obtaining target web mark corresponding login configurations rule, specifically for basis Currently log-on webpage mark coupling the first allocation list in info web to be accessed, described first allocation list includes webpage mark Know classification and corresponding second allocation list mark;The second allocation list mark according to matching obtains from the second allocation list and corresponds to Login configurations rule;This target web of described login configurations regular record identifies the register flow process of place webpage;
Webpage load-on module, identifies corresponding webpage for loading described target web according to described login configurations rule;
Log in object determining module, determine login object for the element in described target web is carried out with positioning;
Log-on message fills module, for the described log-on message corresponding log-on message of mark is filled into described login object In, told log-on message includes login account information and/or login password information.
14. devices as claimed in claim 13 it is characterised in that
Described webpage load-on module, is specifically additionally operable to judge whether include previous step in described login configurations rule, if including, Execute described previous step according to described login configurations rule.
15. devices as claimed in claim 14 it is characterised in that
Described webpage load-on module, be specifically additionally operable to load in described previous step default preposition url and/or execution described before Put default javascript script in step.
16. devices as claimed in claim 13 are it is characterised in that described subprocess module also includes:
Module clicked on by button, for judging whether the login object in described webpage includes login button, if including, to described Login button executes clicking operation.
17. devices as claimed in claim 16, described subprocess module, also include:
Verification input module, for judging whether the login object in described webpage includes check code input frame, if including, ties Bundle current operation.
18. devices as described in claim 13 or 14, described subprocess module, also include:
Rearmounted step block, for judging whether include rearmounted step in described login configurations rule, if including, steps on according to described Record configuration rule executes described rearmounted step.
19. devices as claimed in claim 18, described rearmounted step block, specifically for: load pre- in described rearmounted step If rearmounted url and/or execute described rearmounted step in default javascript script.
20. devices as claimed in claim 13, described login object determining module, specifically for:
The whole label objects obtaining in webpage generate tag set;
According to the public attribute of label object in described tag set, described label object is grouped, from described packet Result obtains one or more packets label;
Parse mapping table according to preset tab file, mate the genus of the label object in one or more of packet labels Property;
Determine that the packet label matching is to log in object.
21. devices as claimed in claim 20, described login object determining module is according to label object in described tag set Public attribute described label object is grouped, specifically include: will there is the label pair of identical father node in tag set As being placed in same packet label.
22. devices as claimed in claim 20, described login object determining module is additionally operable to:
Packet label is grouped again, specifically includes:
Judge one or more packets label in current group result;
If current group label comprises two or more label objects, and described two or multiple label object does not have identical Father node, then the label object in current group label with identical father node is placed in another packet label;
Steps be repeated alternatively until that current group label can not be grouped again.
23. devices as claimed in claim 20, described label object is<input>input frame;
The described object determining module that logs in parses mapping table according to preset tab file, coupling one or more of packet mark The attribute of the label object in label is additionally operable to:
If containing only 1 Password Input frame in current group label, and it is located at the mark of the described Password Input frame subordinate brotgher of node Signing object is not Text Entry, then current group label is logon form;
The described object determining module that logs in determines that the packet label matching is to log in object, specifically for:
The element of described logon form is to log in object;Text Entry in described logon form is login account input frame, Password Input frame in described logon form is login password input frame.
24. devices as claimed in claim 20, described subprocess module also includes:
Login process status indication module, before the login object in described webpage is positioned, by login process mark Know and be set to start;And after corresponding log-on message being filled in described login object, login process mark is set It is set to end.
CN201310681879.6A 2013-12-12 2013-12-12 Method and apparatus for registration in webpage Active CN103647775B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310681879.6A CN103647775B (en) 2013-12-12 2013-12-12 Method and apparatus for registration in webpage

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310681879.6A CN103647775B (en) 2013-12-12 2013-12-12 Method and apparatus for registration in webpage

Publications (2)

Publication Number Publication Date
CN103647775A CN103647775A (en) 2014-03-19
CN103647775B true CN103647775B (en) 2017-01-25

Family

ID=50252931

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310681879.6A Active CN103647775B (en) 2013-12-12 2013-12-12 Method and apparatus for registration in webpage

Country Status (1)

Country Link
CN (1) CN103647775B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103914209B (en) * 2014-03-28 2018-03-27 联想(北京)有限公司 A kind of information processing method and electronic equipment
CN105069328B (en) * 2015-06-30 2018-05-04 北京奇虎科技有限公司 A kind of data processing method and device
CN106897329A (en) * 2015-12-21 2017-06-27 广州市动景计算机科技有限公司 Research on Automatic Filling, equipment, browser, client device and server
CN105828209A (en) * 2016-03-11 2016-08-03 深圳市茁壮网络股份有限公司 Logging-in method and apparatus of home television user
CN107807925A (en) * 2016-09-08 2018-03-16 广州市动景计算机科技有限公司 Browser bookmark method to set up and device and computing device
CN109660348B (en) * 2018-12-03 2021-10-26 东华大学 Password recording system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102438000A (en) * 2011-03-11 2012-05-02 奇智软件(北京)有限公司 Multi-account login method and device
CN102594813A (en) * 2012-02-10 2012-07-18 奇智软件(北京)有限公司 Multi-account login method and device
CN103036993A (en) * 2012-12-18 2013-04-10 北京奇虎科技有限公司 Browser client-side and method of achieving website logging

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102438000A (en) * 2011-03-11 2012-05-02 奇智软件(北京)有限公司 Multi-account login method and device
CN102594813A (en) * 2012-02-10 2012-07-18 奇智软件(北京)有限公司 Multi-account login method and device
CN103036993A (en) * 2012-12-18 2013-04-10 北京奇虎科技有限公司 Browser client-side and method of achieving website logging

Also Published As

Publication number Publication date
CN103647775A (en) 2014-03-19

Similar Documents

Publication Publication Date Title
CN107256195B (en) Webpage front-end test method and device
CN103647775B (en) Method and apparatus for registration in webpage
CN102737019B (en) Machine behavior determines method, web browser and web page server
CN103646081B (en) Method and device for logging in web page
CA2915619C (en) Method and apparatus for customized software development kit (sdk) generation
DK3011444T3 (en) METHOD AND APPARATUS FOR CODE VIRTUALIZATION AND GENERATION OF REMOTE PROCESS CALLS
CN104598513B (en) A kind of method of data flow control and system based on web page frame
CN107688529B (en) Component debugging method and device
KR20190019067A (en) Information leak detection method and apparatus, server and computer readable storage medium
CN105630524B (en) Web page text analytic method, device and mobile terminal
CN106453216A (en) Malicious website interception method, malicious website interception device and client
CN106649057A (en) Method and device for testing server pressure
CN102752267A (en) Method and device for providing website information
CN102045397A (en) Method and equipment for logining embedded terminals by using Telnet to debug embedded terminals
CN108399333A (en) System and method for the anti-virus scan for executing webpage
CN109241037A (en) A kind of method, apparatus that realizing database processing, equipment and storage medium
CN105955838A (en) System halt reason check method and device
CN105005596B (en) page display method and device
CN103198062B (en) A kind of method and system for monitoring the dead chain of the page and js mistakes
CN102664945B (en) For document down loading method, device and system that time-out connects
CN114218072A (en) Test script generation method and device, storage medium and computer equipment
CN104834594B (en) Web system method of testing and device
CN104182402A (en) Browser interface address bar input control method and browser interface address bar input control system
CN111026407B (en) Installation package packing method, computer device and computer readable storage medium
CN106209732A (en) A kind of offer method and device of identifying code

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220720

Address after: Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015

Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Patentee before: Qizhi software (Beijing) Co.,Ltd.