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

Method and apparatus for registration in webpage Download PDF

Info

Publication number
CN103647775A
CN103647775A CN201310681879.6A CN201310681879A CN103647775A CN 103647775 A CN103647775 A CN 103647775A CN 201310681879 A CN201310681879 A CN 201310681879A CN 103647775 A CN103647775 A CN 103647775A
Authority
CN
China
Prior art keywords
login
subprocess
webpage
target web
module
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.)
Granted
Application number
CN201310681879.6A
Other languages
Chinese (zh)
Other versions
CN103647775B (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

Images

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 of logining in webpage
Technical field
The present invention relates to communication technical field, be specifically related to a kind of method and apparatus of logining in webpage.
Background technology
Internet technology has deeply affected people's life at present, and such as E-mail address, forum, web game etc. also become a part indispensable in people's routine work and amusement.But above-mentioned internet, applications could be used after mostly needing user to register and login, so user need to remember a large amount of username and passwords.For the safety of account number, user also needs to arrange the password of comparatively complicated numeral, letter, additional character combination conventionally, has further strengthened the difficulty of memory, when each login, also needs manual input, and everything has caused burden to user's use undoubtedly.Webpage automatic form filling is exactly the technology addressing this problem, the username and password that it can input preservation user in webpage, upper once when user opens same web page, automatically help user to fill in the username and password of having preserved, user needn't remember and fill in a large amount of username and passwords again, uses various network resources and service more easily arbitrarily.
Prior art is when being used browser to carry out automatic form filling to a website, user's login account, login password can be kept in the Cookie of client, when user opens login page, from cookie information, extract login account, password is filled in the input frame of webpage.But, existing browser can be kept at user's log-on message in Session after user's login, when user uses another account, password login website, login account before, password can be nullified, be synchronization, only allow user to use an account, password login.
Summary of the invention
In view of the above problems, the present invention has been proposed to a kind of a kind of method and apparatus of logining that overcomes the problems referred to above or address the above problem is at least in part provided in webpage.
According to one aspect of the present invention, a kind of method of logining in webpage is provided, comprising:
Host process starts a subprocess, and sends the current target web information that will login to described subprocess, and described target web information comprises target web sign, log-on message sign;
Subprocess obtains described target web and identifies corresponding login configurations rule;
Subprocess loads described target web according to described login configurations rule and identifies corresponding target web;
Subprocess positions and determines login object the element in described target web;
Described log-on message is identified to corresponding log-on message and be filled in described login object, the log-on message of telling comprises 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 comprises:
Subprocess judges in described login configurations rule whether comprise preposition step, if comprise, according to described login configurations rule, carries out described preposition step.
Alternatively,
Described according to the preposition step of described login configurations rule execution, specifically comprise:
Load preposition URL default in described preposition step and/or carry out JavaScript script default in described preposition step.
Alternatively, described subprocess obtains described target web and identifies corresponding login configurations rule, specifically comprises:
Subprocess mates the first allocation list according to the login URL in the current info web that will access, and described the first allocation list comprises webpage URL classification and the second corresponding allocation list sign;
Subprocess obtains corresponding login configurations rule according to the second allocation list sign matching from the second allocation list.
Alternatively, described method also comprises:
Subprocess judges whether the login object in described webpage comprises login button, if comprise, described login button is carried out to clicking operation.
Alternatively, described to before login button execution clicking operation, also comprise:
Subprocess judges that whether the login object in described webpage wraps check code input frame, if comprise, finishes current operation.
Alternatively, described to side after login button execution clicking operation, also comprise:
Subprocess judges in described login configurations rule whether comprise rearmounted step, if comprise, according to described login configurations rule, carries out described rearmounted step.
Alternatively, described according to the rearmounted step of described login configurations rule execution, specifically comprise:
Load rearmounted URL default in described rearmounted step and/or carry out JavaScript script default in described rearmounted step.
Alternatively, described element in described target web positioned and determines login object, specifically comprise:
Obtain the whole label object generating labels set in webpage;
Public attribute according to label object in described tag set, divides into groups to described label object, from the result of described grouping, obtains one or more packet labels;
According to preset tab file, resolve mapping table, mate the attribute of the label object in described one or more packet label;
Determine that the packet label matching is login object.
Alternatively, according to the public attribute of label object in described tag set, described label object is divided into groups, comprising:
The label object in tag set with identical father node is placed in same packet label.
Alternatively, the described result from described grouping also comprises after obtaining one or more packet labels:
Packet label divides into groups again, specifically comprises:
One or more packet labels in judgement current group result;
If current group label comprises two or more label objects, and described two or more label object do not have identical father node, the label object in current group label with identical father node is placed in another packet label;
Current group label repeats above-mentioned steps until can not divide into groups again.
Alternatively, described label object is <input> input frame;
The preset tab file of described foundation is resolved mapping table, and the attribute that mates the label object in described one or more packet label also comprises:
If only contain 1 Password Input frame in current group label, and the label object that is positioned at the described Password Input frame subordinate brotgher of node is not text input frame, and current group label is logon form;
Described definite packet label matching is login object, specifically comprises:
The element of described logon form is login object; Text input frame in described logon form is login account input frame, and 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 comprise:
Login process sign is set to start;
Described corresponding log-on message is filled in described login object after, also comprise:
Login process sign is set to finish.
According to another aspect of the present invention, a kind of device of logining in webpage is also provided, comprising: host process module, subprocess module;
Described host process module comprises:
Subprocess starts module, for starting a subprocess, and sends the current target web information that will login to described subprocess, and described target web information comprises target web sign, log-on message sign;
Described subprocess module comprises:
Login configurations rule acquisition module, identifies corresponding login configurations rule for obtaining target web;
Webpage load-on module, identifies corresponding webpage for loading described target web according to described login configurations rule;
Login object determination module, determines login object for the element of described target web is positioned;
Log-on message packing module, is filled into described login object for described log-on message being identified to corresponding log-on message, and the log-on message of telling comprises login account information and/or login password information.
Alternatively,
Described webpage load-on module, specifically also for judging whether described login configurations rule comprises preposition step, if comprise, carries out described preposition step according to described login configurations rule.
Alternatively,
Described webpage load-on module, concrete also for loading the default preposition URL of described preposition step and/or carrying out JavaScript script default in described preposition step.
Alternatively, described login configurations rule acquisition module, specifically for mating the first allocation list according to the login URL in the current info web that will access, described the first allocation list comprises webpage URL classification and the second corresponding allocation list sign; According to the second allocation list sign matching, from the second allocation list, obtain corresponding login configurations rule.
Alternatively, described subprocess module also comprises:
Button is clicked module, for judging whether the login object of described webpage comprises login button, if comprise, described login button is carried out to clicking operation.
Alternatively, described subprocess module, also comprises:
Verification input module, for judging that whether the login object of described webpage wraps check code input frame, if comprise, finishes current operation.
Alternatively, described subprocess module, also comprises:
Rearmounted step block, for judging whether described login configurations rule comprises rearmounted step, if comprise, carries out described rearmounted step according to described login configurations rule.
Alternatively, described rearmounted step block, specifically for: load rearmounted URL default in described rearmounted step and/or carry out JavaScript script default in described rearmounted step.
Alternatively, described login object determination module, specifically for:
Obtain the whole label object generating labels set in webpage;
Public attribute according to label object in described tag set, divides into groups to described label object, from the result of described grouping, obtains one or more packet labels;
According to preset tab file, resolve mapping table, mate the attribute of the label object in described one or more packet label;
Determine that the packet label matching is login object.
Alternatively, described login object determination module divides into groups to described label object according to the public attribute of label object in described tag set, specifically comprises: the label object in tag set with identical father node is placed in same packet label.
Alternatively, described login object determination module also for:
Packet label divides into groups again, specifically comprises:
One or more packet labels in judgement current group result;
If current group label comprises two or more label objects, and described two or more label object do not have identical father node, the label object in current group label with identical father node is placed in another packet label;
Current group label repeats above-mentioned steps until can not divide into groups again.
Alternatively, described label object is <input> input frame;
Described login object determination module is resolved mapping table according to preset tab file, the attribute that mates the label object in described one or more packet label also for:
If only contain 1 Password Input frame in current group label, and the label object that is positioned at the described Password Input frame subordinate brotgher of node is not text input frame, and current group label is logon form;
Described login object determination module determines that the packet label matching is login object, specifically for:
The element of described logon form is login object; Text input frame in described logon form is login account input frame, and the Password Input frame in described logon form is login password input frame.
Alternatively, described subprocess module also comprises:
Login process status indication module, before positioning for the login object to described webpage, login process sign is set to start; And after in corresponding log-on message is filled into described login object, login process sign is set to finish
The technical scheme that the embodiment of the present invention provides is at least brought following technique effect:
Prior art is when being used browser client to login a website, current login account, login password can be kept in the Cookie of client, when user uses another account, password login website, login account before, password can be nullified, be synchronization, only allow user to use an account, password login.In the embodiment of the present invention, host process starts corresponding a plurality of subprocesss for the different logging request of same website, each subprocess loads respectively login page in its each self-corresponding subwindow, and use different login accounts, login password to login, and different login accounts, login password are stored respectively by different directories, realized many accounts of same website are logined simultaneously.
Above-mentioned explanation is only the general introduction of technical solution of the present invention, in order to better understand technological means of the present invention, and can be implemented according to the content of specification, and for above and other objects of the present invention, feature and advantage can be become apparent, below especially exemplified by the specific embodiment of the present invention.
Accompanying drawing explanation
By reading below detailed description of the preferred embodiment, various other advantage and benefits will become cheer and bright for those of ordinary skills.Accompanying drawing is only for the object of preferred implementation is shown, and do not think limitation of the present invention.And in whole accompanying drawing, by identical reference symbol, represent identical parts.In the accompanying drawings:
Fig. 1 shows the flow chart of steps of the method for logining in a kind of according to an embodiment of the invention webpage;
Fig. 2 shows the flow chart of steps of the method for logining in a kind of according to an embodiment of the invention webpage;
Fig. 3 shows the flow chart of steps of logining the method for object in the method for logining in a kind of according to an embodiment of the invention webpage in definite webpage;
Fig. 4 shows the structural representation of the device of logining in a kind of according to an embodiment of the invention webpage.
Embodiment
Exemplary embodiment of the present disclosure is described below with reference to accompanying drawings in more detail.Although shown exemplary embodiment of the present disclosure in accompanying drawing, yet should be appreciated that and can realize the disclosure and the embodiment that should do not set forth limits here with various forms.On the contrary, it is in order more thoroughly to understand the disclosure that these embodiment are provided, and can by the scope of the present disclosure complete convey to those skilled in the art.
Embodiment mono-
With reference to Fig. 1, Fig. 1 shows the method for logining in a kind of webpage that the embodiment of the present invention provides, and described method comprises:
S101, host process starts a subprocess, and sends the current target web information that will login to described subprocess, and described target web information comprises target web sign, log-on message sign.
In the embodiment of the present invention, the logging request that host process is sent according to user starts corresponding subprocess, each subprocess is identified at and in its corresponding browser subwindow, loads described target web and identify corresponding webpage according to the target web receiving, this webpage comprises the login object for logining, such as: user name input frame, Password Input frame, login button etc.To described each browser subwindow, can use different log-on messages to carry out register in described browser subwindow, described log-on message comprises login account and/or login password.
Wherein, the target web sign in target web information is for webpage of unique identification, and generally speaking, it can be webpage URL, can be also the identification information of setting by certain rule in addition, and the present invention does not do concrete restriction to this.
Wherein, log-on message identifies corresponding log-on message, comprising: login account, login password etc.
S102, subprocess obtains described target web and identifies corresponding login configurations rule.
Wherein, described login configurations rule specifically comprises: preposition step and/or rearmounted step.
Further, described preposition step specifically comprises: load preposition URL default in described preposition step and/or carry out JavaScript script default in described preposition step.
Further, described rearmounted step specifically comprises: load rearmounted URL default in described rearmounted step and/or carry out JavaScript script default in described rearmounted step.
Register for different web pages, the login step flow process of its setting may be different, whether the embodiment of the present invention, according in webpage, the concrete operations flow process of login object being determined and being stored corresponding login configurations rule, comprises preposition step, rearmounted step or other registers.
In addition, described login configurations rule also can comprise other operating processes and the action corresponding with described webpage register, or other configuration rules that the actual needs while being logined according to webpage by those skilled in the art is determined, the present invention does not do concrete restriction to the content of login configurations rule.
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 webpage, specifically comprise: subprocess judges in described login configurations rule whether comprise preposition step, if comprise, according to described login configurations rule, carry out described preposition step; Subprocess loads described target web and identifies corresponding target web in corresponding subwindow.
S104, subprocess positions and determines login object the element in described target web.
Wherein, location determines that login object is login account input frame in locating web-pages, login password input frame, check code input frame, login button or the particular location of other login object in webpage.
S105, identifies corresponding log-on message by log-on message and is filled in described login object, and the log-on message of telling comprises login account information and/or login password information.
Prior art is when being used browser client to login a website, current login account, login password can be kept in the Cookie of client, when user uses another account, password login website, login account before, password can be nullified, be synchronization, only allow user to use an account, password login.In the embodiment of the present invention, host process starts corresponding a plurality of subprocesss for the different logging request of same website, each subprocess loads respectively login page in its each self-corresponding subwindow, and use different login accounts, login password to login, and different login accounts, login password are stored respectively by different directories, realized many accounts of same website are logined simultaneously.
Secondly, the invention process arranges login configurations rule according to the login process of different web sites, and load corresponding webpage according to this configuration rule, the register of the loading procedure Complete Mappings user who makes this webpage to described webpage, even if this webpage is provided with preposition step, also can guarantee that the normal of this webpage effectively loads.Further, by the login object in locating web-pages, user's login account, login password are filled in login object, have avoided system because waiting for that user inputs the spent time of log-on message, reduced the resource consumption of system.
Embodiment bis-
With reference to Fig. 2, Fig. 2 shows the method for logining in a kind of webpage that the embodiment of the present invention provides, and described method comprises:
S201, host process starts a subprocess, and sends the current target web information that will login to described subprocess, and described target web information comprises target web sign, log-on message sign.
S202, subprocess obtains described target web and identifies corresponding login configurations rule.
Further, this step specifically comprises:
Host process is mated the first allocation list according to the login URL in the current info web that will access, and described the first allocation list comprises webpage URL classification and the second corresponding allocation list sign;
According to the second allocation list sign matching, from the second allocation list, obtain corresponding login configurations rule.
Wherein, the second allocation list storage with the marking matched login configurations rule physical record of described target web the register flow process of this target web sign place webpage, for example: whether need to carry out preposition step, comprising: access preposition URL, carry out preposition JavaScript script etc.; While carrying out login step, specifically how to fill in a form, how to login; And whether need to carry out rearmounted step after carrying out login, comprising: carry out rearmounted URL, carry out rearmounted JavaScript script etc.
Wherein, the login URL that the first allocation list is coupling target web obtains corresponding login configurations rule provides index, and the time of mating login configurations rule is further reduced.
S203, login process sign is set to start.
S204, subprocess judges in described login configurations rule whether comprise preposition step, if comprise, according to described login configurations rule, carries out described preposition step.
Wherein, according to described login configurations rule, carry out preposition step, specifically comprise:
Load preposition URL default in described preposition step and/or carry out JavaScript script default in described preposition step.
S205, subprocess loads described target web and identifies corresponding target web in corresponding subwindow.
S206, subprocess positions and determines login object the element in target web.
S207, subprocess identifies corresponding log-on message by log-on message and is filled in described login object, and the log-on message of telling comprises login account information and/or login password information.
S208, subprocess judges that whether the login object in described webpage wraps check code input frame, if comprise, finishes current operation.
This step is optional step, if those skilled in the art can determine that the identification of check code input frame is had to certain success rate can ignore this step when enforcement is of the present invention.
S209, subprocess judges whether the login object in described webpage comprises login button, if comprise, described login button is carried out to clicking operation.
S210, subprocess judges in described login configurations rule whether comprise rearmounted step, if comprise, according to described login configurations rule, carries out described rearmounted step.
Wherein, according to login configurations rule, carry out rearmounted step, specifically comprise:
Load rearmounted URL default in described rearmounted step and/or carry out JavaScript script default in described rearmounted step.
By carrying out rearmounted step, can after carrying out login step, the webpage in current window jump to the rearmounted URL of appointment.
S211, login process sign is set to finish.
In the above-described embodiments, by carry out preposition step and/or rearmounted step before login step, motion flow when the register Complete Mappings user who makes the webpage to carry out completes register by hand, has avoided login restriction default in website, has improved the success rate of login.
Wherein, step S203, S211 are optional step.By the login process state of the current subprocess of login process identification record to webpage is set, for login process, be designated the subprocess of end, webpage in its subwindow is no longer carried out to log-on message and fill and login button clicking operation, effectively avoided repeat logon, saved system resource.
In the above embodiment of the present invention, first by the element in webpage, position and determine login object, then described login object is filled to log-on message, therefore, how accurately to locate and determine login and be able to liking above-described embodiment the prerequisite of effectively implementing, for this reason, the invention provides the element in target web is positioned to the concrete grammar of determining login object, comprising:
S301, obtains the whole label object generating labels set in webpage.
Wherein, described label object is <input> input frame.
S302, the public attribute according to label object in described tag set, divides into groups to described label object, from the result of described grouping, obtains one or more packet labels.
Wherein, the public attribute according to label object in described tag set, divides into groups specifically to comprise to described label object: the label object in tag set with identical father node is placed in same packet label.
S303, packet label divides into groups again.
This step specifically comprises:
One or more packet labels in judgement current group result;
If current group label comprises two or more label objects, and described two or more label object do not have identical father node, the label object in current group label with identical father node is placed in another packet label;
Current group label repeats above-mentioned steps until can not divide into groups again.
S303, resolves mapping table according to preset tab file, mates the attribute of the label object in described one or more packet label.
The preset tab file of described foundation is resolved mapping table, mates the attribute of the label object in described one or more packet label, specifically comprises:
If only contain 1 Password Input frame in current group label, and the label object that is positioned at the described Password Input frame subordinate brotgher of node is not text input frame, and current group label is logon form.
S304, determines that the packet label matching is login object.
Wherein, determine that the packet label matching is login object, specifically comprise:
The element of described logon form is login object; Text input frame in described logon form is login account input frame, and the Password Input frame in described logon form is login password input frame.
For the <input> input frame in webpage, be not that all Password Input frames just must be login object, for example, in the different Frame of a lot of webpages, can there is logon form simultaneously, enrollment form, password replacement list etc., so, if only confine a position login object and be easy to occur location mistake according to whether comprising Password Input, therefore, the embodiment of the present invention is by being placed in same packet label by the label object in webpage with identical father node, then packet label is divided into groups again, and according to tab file, resolve mapping table and determine the logon form in webpage, can greatly improve the accuracy of login object location.
Further, the restriction that login object in locating web-pages is not logined the attribute of object own according to the method described above, even if website changes logining ID, title, the positional information of object in log-on webpage, still can accurately orient login object, avoided technical staff in prior art according to the problem of the content modification locating rule of website, to have greatly reduced artificial and maintenance cost.
In another expansion embodiment of the present invention, described login configurations rule also comprises: white list.Described subprocess positions and determines that login object also comprises the element in target web: subprocess positions and determines login object the element in webpage according to white list.In described white list according to the title of element in webpage, ID configure Password Input frame, login button is definite login object.When location login object, first according to the information configuring in described white list, determine login object, if locate unsuccessfully, then position according to subsequent step.Owing to being configured in white list in webpage, login object properties information, therefore can directly position, avoided by labeled packet location, logining required a large amount of computings and matching operation in object process in subsequent step, greatly reduce system resources consumption.
Embodiment tri-
Referring to Fig. 4, Fig. 4 shows the structural representation of a kind of device of logining in webpage that the embodiment of the present invention provides, and described device comprises: host process module 410, subprocess module 420;
Described host process module 410 comprises:
Subprocess starts module 411, for starting a subprocess, and sends the current target web information that will login to described subprocess, and described target web information comprises target web sign, log-on message sign;
Described subprocess module 420 comprises:
Login configurations rule acquisition module 421, identifies corresponding login configurations rule for obtaining target web;
Webpage load-on module 422, identifies corresponding webpage for loading described target web according to described login configurations rule;
Login object determination module 423, determines login object for the element of described target web is positioned;
Log-on message packing module 424, is filled into described login object for described log-on message being identified to corresponding log-on message, and the log-on message of telling comprises login account information and/or login password information.
Wherein, described webpage load-on module 422, specifically also for judging whether described login configurations rule comprises preposition step, if comprise, carries out described preposition step according to described login configurations rule.
Wherein, described webpage load-on module 422, concrete also for loading the default preposition URL of described preposition step and/or carrying out JavaScript script default in described preposition step.
Wherein, described login configurations rule acquisition module 421, specifically for mating the first allocation list according to the login URL in the current info web that will access, described the first allocation list comprises webpage URL classification and the second corresponding allocation list sign; According to the second allocation list sign matching, from the second allocation list, obtain corresponding login configurations rule.
Wherein, described subprocess module 420 also comprises:
Button is clicked module 425, for judging whether the login object of described webpage comprises login button, if comprise, described login button is carried out to clicking operation.
Wherein, described subprocess module 420, also comprises:
Verification input module 426, for judging that whether the login object of described webpage wraps check code input frame, if comprise, finishes current operation.
Wherein, described subprocess module 420, also comprises:
Rearmounted step block 427, for judging whether described login configurations rule comprises rearmounted step, if comprise, carries out described rearmounted step according to described login configurations rule.
Wherein, described rearmounted step block 427, specifically for: load rearmounted URL default in described rearmounted step and/or carry out JavaScript script default in described rearmounted step.
Wherein, described login object determination module 423, specifically for:
Obtain the whole label object generating labels set in webpage;
Public attribute according to label object in described tag set, divides into groups to described label object, from the result of described grouping, obtains one or more packet labels;
According to preset tab file, resolve mapping table, mate the attribute of the label object in described one or more packet label;
Determine that the packet label matching is login object.
Wherein, described login object determination module 423 divides into groups to described label object according to the public attribute of label object in described tag set, specifically comprises: the label object in tag set with identical father node is placed in same packet label.
Wherein, described login object determination module 423 also for:
Packet label divides into groups again, specifically comprises:
One or more packet labels in judgement current group result;
If current group label comprises two or more label objects, and described two or more label object do not have identical father node, the label object in current group label with identical father node is placed in another packet label;
Current group label repeats above-mentioned steps until can not divide into groups again.
Wherein, described label object is <input> input frame;
Described login object determination module 423 is resolved mapping table according to preset tab file, the attribute that mates the label object in described one or more packet label also for:
If only contain 1 Password Input frame in current group label, and the label object that is positioned at the described Password Input frame subordinate brotgher of node is not text input frame, and current group label is logon form;
Described login object determination module determines that the packet label matching is login object, specifically for:
The element of described logon form is login object; Text input frame in described logon form is login account input frame, and the Password Input frame in described logon form is login password input frame.
Wherein, 420 of described subprocess moulds also comprise:
Login process status indication module 428, before positioning for the login object to described webpage, login process sign is set to start; And after in corresponding log-on message is filled into described login object, login process sign is set to finish.
The algorithm providing at this is intrinsic not relevant to any certain computer, virtual system or miscellaneous equipment with demonstration.Various general-purpose systems also can with based on using together with this teaching.According to description above, it is apparent constructing the desired structure of this type systematic.In addition, the present invention is not also for any certain programmed language.It should be understood that and can utilize various programming languages to realize content of the present invention described here, and the description of above language-specific being done is in order to disclose preferred forms of the present invention.
In the specification that provided herein, a large amount of details have been described.Yet, can understand, embodiments of the invention can not put into practice in the situation that there is no these details.In some instances, be not shown specifically known method, structure and technology, so that not fuzzy understanding of this description.
Similarly, be to be understood that, in order to simplify the disclosure and to help to understand one or more in each inventive aspect, in the above in the description of exemplary embodiment of the present invention, each feature of the present invention is grouped together into single embodiment, figure or sometimes in its description.Yet, the method for the disclosure should be construed to the following intention of reflection: the present invention for required protection requires than the more feature of feature of clearly recording in each claim.Or rather, as reflected in claims below, inventive aspect is to be less than all features of disclosed single embodiment above.Therefore, claims of following embodiment are incorporated to this embodiment thus clearly, and wherein each claim itself is as independent embodiment of the present invention.
Those skilled in the art are appreciated that and can the module in the equipment in embodiment are adaptively changed and they are arranged in one or more equipment different from this embodiment.Module in embodiment or unit or assembly can be combined into a module or unit or assembly, and can put them into a plurality of submodules or subelement or sub-component in addition.At least some in such feature and/or process or unit are mutually repelling, and can adopt any combination to combine all processes or the unit of disclosed all features in this specification (comprising claim, summary and the accompanying drawing followed) and disclosed any method like this or equipment.Unless clearly statement in addition, in this specification (comprising claim, summary and the accompanying drawing followed) disclosed each feature can be by providing identical, be equal to or the alternative features of similar object replaces.
In addition, those skilled in the art can understand, although embodiment more described herein comprise some feature rather than further feature included in other embodiment, the combination of the feature of different embodiment means within scope of the present invention and forms different embodiment.For example, in the following claims, the one of any of embodiment required for protection can be used with compound mode arbitrarily.
All parts embodiment of the present invention can realize with hardware, or realizes with the software module moved on one or more processor, or realizes with their combination.It will be understood by those of skill in the art that and can use in practice microprocessor or digital signal processor (DSP) to realize the some or all functions according to the some or all parts in the device of logining in the webpage of the embodiment of the present invention.The present invention for example can also be embodied as, for carrying out part or all equipment or device program (, computer program and computer program) of method as described herein.Realizing program of the present invention and can be stored on computer-readable medium like this, or can there is the form of one or more signal.Such signal can be downloaded and obtain from internet website, or provides on carrier signal, or provides with any other form.
It should be noted above-described embodiment the present invention will be described rather than limit the invention, and those skilled in the art can design alternative embodiment in the situation that do not depart from the scope of claims.In the claims, any reference symbol between bracket should be configured to limitations on claims.Word " comprises " not to be got rid of existence and is not listed as element or step in the claims.Being positioned at word " " before element or " one " does not get rid of and has a plurality of such elements.The present invention can be by means of including the hardware of some different elements and realizing by means of the computer of suitably programming.In having enumerated the unit claim of some devices, several in these devices can be to carry out imbody by same hardware branch.The use of word first, second and C grade does not represent any order.Can be title by these word explanations.
The embodiment of the invention also discloses A1, a kind of method of logining in webpage, comprising:
Host process starts a subprocess, and sends the current target web information that will login to described subprocess, and described target web information comprises target web sign, log-on message sign;
Subprocess obtains described target web and identifies corresponding login configurations rule;
Subprocess loads described target web according to described login configurations rule and identifies corresponding target web;
Subprocess positions and determines login object the element in described target web;
Described log-on message is identified to corresponding log-on message and be filled in described login object, the log-on message of telling comprises login account information and/or login password information.
A2, the method as described in A1, described subprocess loads described target web according to described login configurations rule and identifies corresponding webpage, specifically comprises:
Subprocess judges in described login configurations rule whether comprise preposition step, if comprise, according to described login configurations rule, carries out described preposition step.
A3, the method as described in A2,
Described according to the preposition step of described login configurations rule execution, specifically comprise:
Load preposition URL default in described preposition step and/or carry out JavaScript script default in described preposition step.
A4, the method as described in A1, described subprocess obtains described target web and identifies corresponding login configurations rule, specifically comprises:
Subprocess mates the first allocation list according to the login URL in the current info web that will access, and described the first allocation list comprises webpage URL classification and the second corresponding allocation list sign;
Subprocess obtains corresponding login configurations rule according to the second allocation list sign matching from the second allocation list.
A5, the method as described in A1, described method also comprises:
Subprocess judges whether the login object in described webpage comprises login button, if comprise, described login button is carried out to clicking operation.
A6, the method as described in A5, described to before login button execution clicking operation, also comprise:
Subprocess judges that whether the login object in described webpage wraps check code input frame, if comprise, finishes current operation.
A7, the method as described in A5 or A6, described to side after login button execution clicking operation, also comprise:
Subprocess judges in described login configurations rule whether comprise rearmounted step, if comprise, according to described login configurations rule, carries out described rearmounted step.
A8, the method as described in A7, described according to the rearmounted step of described login configurations rule execution, specifically comprise:
Load rearmounted URL default in described rearmounted step and/or carry out JavaScript script default in described rearmounted step.
A9, the method as described in A1, describedly position and determine login object the element in described target web, specifically comprises:
Obtain the whole label object generating labels set in webpage;
Public attribute according to label object in described tag set, divides into groups to described label object, from the result of described grouping, obtains one or more packet labels;
According to preset tab file, resolve mapping table, mate the attribute of the label object in described one or more packet label;
Determine that the packet label matching is login object.
A10, the method as described in A9, divide into groups to described label object according to the public attribute of label object in described tag set, 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 grouping also comprises after obtaining one or more packet labels:
Packet label divides into groups again, specifically comprises:
One or more packet labels in judgement current group result;
If current group label comprises two or more label objects, and described two or more label object do not have identical father node, the label object in current group label with identical father node is placed in another packet label;
Current group label repeats above-mentioned steps until can not divide into groups again.
A12, the method as described in A11, described label object is <input> input frame;
The preset tab file of described foundation is resolved mapping table, and the attribute that mates the label object in described one or more packet label also comprises:
If only contain 1 Password Input frame in current group label, and the label object that is positioned at the described Password Input frame subordinate brotgher of node is not text input frame, and current group label is logon form;
Described definite packet label matching is login object, specifically comprises:
The element of described logon form is login object; Text input frame in described logon form is login account input frame, and 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 comprise:
Login process sign is set to start;
Described corresponding log-on message is filled in described login object after, also comprise:
Login process sign is set to finish.
The embodiment of the invention also discloses B14, a kind of device of logining in webpage, comprising: host process module, subprocess module;
Described host process module comprises:
Subprocess starts module, for starting a subprocess, and sends the current target web information that will login to described subprocess, and described target web information comprises target web sign, log-on message sign;
Described subprocess module comprises:
Login configurations rule acquisition module, identifies corresponding login configurations rule for obtaining target web;
Webpage load-on module, identifies corresponding webpage for loading described target web according to described login configurations rule;
Login object determination module, determines login object for the element of described target web is positioned;
Log-on message packing module, is filled into described login object for described log-on message being identified to corresponding log-on message, and the log-on message of telling comprises login account information and/or login password information.
B15, the device as described in B14,
Described webpage load-on module, specifically also for judging whether described login configurations rule comprises preposition step, if comprise, carries out described preposition step according to described login configurations rule.
B16, the device as described in B15,
Described webpage load-on module, concrete also for loading the default preposition URL of described preposition step and/or carrying out JavaScript script default in described preposition step.
B17, the device as described in B14, described login configurations rule acquisition module, specifically for mating the first allocation list according to the login URL in the current info web that will access, described the first allocation list comprises webpage URL classification and the second corresponding allocation list sign; According to the second allocation list sign matching, from the second allocation list, obtain corresponding login configurations rule.
B18, the device as described in B14, described subprocess module also comprises:
Button is clicked module, for judging whether the login object of described webpage comprises login button, if comprise, described login button is carried out to clicking operation.
B19, the device as described in B18, described subprocess module, also comprises:
Verification input module, for judging that whether the login object of described webpage wraps check code input frame, if comprise, finishes current operation.
B20, the device as described in B14 or B15, described subprocess module, also comprises:
Rearmounted step block, for judging whether described login configurations rule comprises rearmounted step, if comprise, carries out described rearmounted step according to described login configurations rule.
B21, the device as described in B20, described rearmounted step block, specifically for: load rearmounted URL default in described rearmounted step and/or carry out JavaScript script default in described rearmounted step.
B22, the device as described in B14, described login object determination module, specifically for:
Obtain the whole label object generating labels set in webpage;
Public attribute according to label object in described tag set, divides into groups to described label object, from the result of described grouping, obtains one or more packet labels;
According to preset tab file, resolve mapping table, mate the attribute of the label object in described one or more packet label;
Determine that the packet label matching is login object.
B23, the device as described in B22, described login object determination module divides into groups to described label object according to the public attribute of label object in described tag set, specifically comprises: the label object in tag set with identical father node is placed in same packet label.
B24, the device as described in B22, described login object determination module also for:
Packet label divides into groups again, specifically comprises:
One or more packet labels in judgement current group result;
If current group label comprises two or more label objects, and described two or more label object do not have identical father node, the label object in current group label with identical father node is placed in another packet label;
Current group label repeats above-mentioned steps until can not divide into groups again.
B25, the device as described in B22, described label object is <input> input frame;
Described login object determination module is resolved mapping table according to preset tab file, the attribute that mates the label object in described one or more packet label also for:
If only contain 1 Password Input frame in current group label, and the label object that is positioned at the described Password Input frame subordinate brotgher of node is not text input frame, and current group label is logon form;
Described login object determination module determines that the packet label matching is login object, specifically for:
The element of described logon form is login object; Text input frame in described logon form is login account input frame, and the Password Input frame in described logon form is login password input frame.
B26, the device as described in B22, described subprocess module also comprises:
Login process status indication module, before positioning for the login object to described webpage, login process sign is set to start; And after in corresponding log-on message is filled into described login object, login process sign is set to finish.

Claims (10)

1. a method of logining in webpage, comprising:
Host process starts a subprocess, and sends the current target web information that will login to described subprocess, and described target web information comprises target web sign, log-on message sign;
Subprocess obtains described target web and identifies corresponding login configurations rule;
Subprocess loads described target web according to described login configurations rule and identifies corresponding target web;
Subprocess positions and determines login object the element in described target web;
Described log-on message is identified to corresponding log-on message and be filled in described login object, the log-on message of telling comprises login account information and/or login password information.
2. the method for claim 1, is characterized in that, described subprocess loads described target web according to described login configurations rule and identifies corresponding webpage, specifically comprises:
Subprocess judges in described login configurations rule whether comprise preposition step, if comprise, according to described login configurations rule, carries out described preposition step.
3. method as claimed in claim 2, is characterized in that,
Described according to the preposition step of described login configurations rule execution, specifically comprise:
Load preposition URL default in described preposition step and/or carry out JavaScript script default in described preposition step.
4. the method for claim 1, is characterized in that, described subprocess obtains described target web and identifies corresponding login configurations rule, specifically comprises:
Subprocess mates the first allocation list according to the login URL in the current info web that will access, and described the first allocation list comprises webpage URL classification and the second corresponding allocation list sign;
Subprocess obtains corresponding login configurations rule according to the second allocation list sign matching from the second allocation list.
5. the method for claim 1, is characterized in that, described method also comprises:
Subprocess judges whether the login object in described webpage comprises login button, if comprise, described login button is carried out to clicking operation.
6. a device of logining in webpage, comprising: host process module, subprocess module;
Described host process module comprises:
Subprocess starts module, for starting a subprocess, and sends the current target web information that will login to described subprocess, and described target web information comprises target web sign, log-on message sign;
Described subprocess module comprises:
Login configurations rule acquisition module, identifies corresponding login configurations rule for obtaining target web;
Webpage load-on module, identifies corresponding webpage for loading described target web according to described login configurations rule;
Login object determination module, determines login object for the element of described target web is positioned;
Log-on message packing module, is filled into described login object for described log-on message being identified to corresponding log-on message, and the log-on message of telling comprises login account information and/or login password information.
7. device as claimed in claim 6, is characterized in that,
Described webpage load-on module, specifically also for judging whether described login configurations rule comprises preposition step, if comprise, carries out described preposition step according to described login configurations rule.
8. device as claimed in claim 7, is characterized in that,
Described webpage load-on module, concrete also for loading the default preposition URL of described preposition step and/or carrying out JavaScript script default in described preposition step.
9. device as claimed in claim 6, it is characterized in that, described login configurations rule acquisition module, specifically for mating the first allocation list according to the login URL in the current info web that will access, described the first allocation list comprises webpage URL classification and the second corresponding allocation list sign; According to the second allocation list sign matching, from the second allocation list, obtain corresponding login configurations rule.
10. device as claimed in claim 6, is characterized in that, described subprocess module also comprises:
Button is clicked module, for judging whether the login object of described webpage comprises login button, if comprise, described login button is carried out to clicking operation.
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 true CN103647775A (en) 2014-03-19
CN103647775B 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)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103914209A (en) * 2014-03-28 2014-07-09 联想(北京)有限公司 Information processing method and electronic device
CN105069328A (en) * 2015-06-30 2015-11-18 北京奇虎科技有限公司 Data processing method and device
CN105828209A (en) * 2016-03-11 2016-08-03 深圳市茁壮网络股份有限公司 Logging-in method and apparatus of home television user
CN106897329A (en) * 2015-12-21 2017-06-27 广州市动景计算机科技有限公司 Research on Automatic Filling, equipment, browser, client device and server
WO2018045947A1 (en) * 2016-09-08 2018-03-15 广州市动景计算机科技有限公司 Browser bookmark setting method and apparatus, and computing device
CN109660348A (en) * 2018-12-03 2019-04-19 东华大学 A kind of cryptographic 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 logon 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 logon 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

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103914209A (en) * 2014-03-28 2014-07-09 联想(北京)有限公司 Information processing method and electronic device
CN103914209B (en) * 2014-03-28 2018-03-27 联想(北京)有限公司 A kind of information processing method and electronic equipment
CN105069328A (en) * 2015-06-30 2015-11-18 北京奇虎科技有限公司 Data processing method and device
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
WO2018045947A1 (en) * 2016-09-08 2018-03-15 广州市动景计算机科技有限公司 Browser bookmark setting method and apparatus, and computing device
CN109660348A (en) * 2018-12-03 2019-04-19 东华大学 A kind of cryptographic system

Also Published As

Publication number Publication date
CN103647775B (en) 2017-01-25

Similar Documents

Publication Publication Date Title
CN103647775A (en) Method and apparatus for registration in webpage
EP3011442B1 (en) Method and apparatus for customized software development kit (sdk) generation
CN102495855A (en) Automatic login method and device
CN104978258A (en) Software automation test method and system
CN103646081A (en) Method and device for logging in web page
CN103268331A (en) Automatic login method and automatic login device
CN104283682A (en) Method, device and system conducting verification through verification codes
CN102750486A (en) Method and device for updating login information by login control
CN107807841B (en) Server simulation method, device, equipment and readable storage medium
CN110320378B (en) Method, apparatus, device and computer readable storage medium for applying for a quality control test
CN109271778A (en) Using installation source differentiating method, electronic equipment and computer storage medium
CN108062401B (en) Application recommendation method and device and storage medium
CN104361040A (en) Method and device for customized query
CN104281801B (en) Single-sign-on control method and device
CN103955379B (en) A kind of method and system for registering software
CN107273102A (en) The generation method and device of mobile applications
CN110825370B (en) Mobile terminal application development method, device and system
CN111199390A (en) Invoice reimbursement method and device, storage medium and electronic equipment
CN106302011A (en) Method of testings based on multiterminal and terminal
CN112309313A (en) Module controller configuration method, device and system and computer readable storage medium
CN105893502A (en) Code synchronization method and device
CN112272135B (en) Mail sending method, device, equipment and storage medium for storage software
CN103678644A (en) Method and device for displaying schedule information in browser
CN102984229A (en) Method and system for assembling confidence machine
CN112307379A (en) Page generation method, device and equipment

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

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.

TR01 Transfer of patent right