Press the shortcut wizard htmlcheck to select/clear the single button or check box on the webpage

Source: Internet
Author: User
Command Name: Htmlcheck select/clear the single sign or check box on the webpage
Command function: Select/clear the single button or check box on the webpage.
Command parameters: Parameter 1: Boolean value; true indicates selected; false indicates cleared.
Parameter 2: string type, web page element feature string
Return Value: None
Script example:
(8. x syntax)
{
DP. Sh. toolbar. Command ('copytoclipboard', this); Return false;
} "Href =" http://www.vrbrothers.com/cn/qmacro/qmdn/plugin/Web.HtmlCheck.htm# "> copy code
  1. Call plugin. Web. BIND ("wqm.exe ")
  2. Call plugin. Web. Go ("http://www.vrbrothers.com/cn/wqm/demo/pages/Demo-ComplexForm.aspx ")
  3. // Delay 3000.
  4. Call plugin. Web. htmlinput ("Key push wizard", "ID: ctl00_maincontent_tbusername ")
  5. Call plugin. Web. htmlinput ("password", "ID: ctl00_maincontent_tbpassword ")
  6. Call plugin. Web. htmlinput ("hi@vrbrothers.com", "ID: ctl00_maincontent_tbemail ")
  7. Call plugin. Web. htmlcheck (true, "ID: ctl00_maincontent_rblgender_0 ")
  8. Call plugin. Web. htmlselect ("Hubei", "ID: ctl00_maincontent_ddlprovince ")
  9. // Delay 500.
  10. Call plugin. Web. htmlselect ("Yichang", "ID: ctl00_maincontent_ddlcity ")
  11. // Delay 500.
  12. Call plugin. Web. htmlselect ("4010200% 4083000", "ID: ctl00_maincontent_lbobjectives ")
  13. Call plugin. Web. htmlcheck (true, "ID: ctl00_maincontent_cblhobies_0 ")
  14. Call plugin. Web. htmlcheck (true, "ID: ctl00_maincontent_cblhobies_1 ")
  15. // Delay 2000.
  16. Call plugin. Web. htmlcheck (true, "ID: ctl00_maincontent_cblhobies_2 ")
  17. Call plugin. Web. htmlinput ("test! "," ID: ctl00_maincontent_tbselfassement ")
  18. Call plugin. Web. htmlcheck (true, "ID: ctl00_maincontent_cbacceptterms ")
  19. Delay1000
  20. Call plugin. Web. htmlclick ("tag: Input & Value: Submit ")
  21. Sub onscriptexit ()
  22. Plugin web. Tips ("script running completed ")
  23. End sub
Call plugin. web. BIND ("wqm.exe") Call plugin. web. go ("http://www.vrbrothers.com/cn/wqm/demo/pages/Demo-ComplexForm.aspx") // delay 3000 call plugin. web. htmlinput ("Button wizard", "ID: ctl00_maincontent_tbusername") Call plugin. web. htmlinput ("password", "ID: ctl00_maincontent_tbpassword") Call plugin. web. htmlinput ("hi@vrbrothers.com", "ID: ctl00_maincontent_tbemail") Call plugin. web. htmlcheck (true, "ID: ctl00_maincontent_rbl Gender_0 ") Call plugin. web. htmlselect ("Hubei", "ID: ctl00_maincontent_ddlprovince") // delay 500 call plugin. web. htmlselect ("Yichang", "ID: ctl00_maincontent_ddlcity") // delay 500 call plugin. web. htmlselect ("4010200% 4083000", "ID: ctl00_maincontent_lbobjectives") Call plugin. web. htmlcheck (true, "ID: ctl00_maincontent_cblhobies_0") Call plugin. web. htmlcheck (true, "ID: ctl00_maincontent_cblhobies_1") // delay 2000 call plugin. Web. htmlcheck (true, "ID: ctl00_maincontent_cblhobies_2") Call plugin. Web. htmlinput ("test! "," ID: ctl00_maincontent_tbselfassement ") Call plugin. web. htmlcheck (true, "ID: ctl00_maincontent_cbacceptterms") Delay 1000 call plugin. web. htmlclick ("tag: Input & Value: Submit") sub onscriptexit () plugin web. tips ("script completed") end sub
Script example:
(7.x syntax)
{
DP. Sh. toolbar. Command ('copytoclipboard', this); Return false;
} "Href =" http://www.vrbrothers.com/cn/qmacro/qmdn/plugin/Web.HtmlCheck.htm# "> copy code
  1. Plugin web. BIND ("wqm.exe ")
  2. Plugin web. Go ("http://www.vrbrothers.com/cn/wqm/demo/pages/Demo-ComplexForm.aspx ")
  3. // Delay 3000.
  4. Plugin web. htmlinput ("Button wizard", "ID: ctl00_maincontent_tbusername ")
  5. Plugin web. htmlinput ("password", "ID: ctl00_maincontent_tbpassword ")
  6. Plugin web. htmlinput ("hi@vrbrothers.com", "ID: ctl00_maincontent_tbemail ")
  7. Plugin web. htmlcheck (true, "ID: ctl00_maincontent_rblgender_0 ")
  8. Plugin web. htmlselect ("Hubei", "ID: ctl00_maincontent_ddlprovince ")
  9. // Delay 500.
  10. Plugin web. htmlselect ("Yichang", "ID: ctl00_maincontent_ddlcity ")
  11. // Delay 500.
  12. Plugin web. htmlselect ("4010200% 4083000", "ID: ctl00_maincontent_lbobjectives ")
  13. Plugin web. htmlcheck (true, "ID: ctl00_maincontent_cblhobies_0 ")
  14. Plugin web. htmlcheck (true, "ID: ctl00_maincontent_cblhobies_1 ")
  15. // Delay 2000.
  16. Plugin web. htmlcheck (true, "ID: ctl00_maincontent_cblhobies_2 ")
  17. Plugin web. htmlinput ("test! "," ID: ctl00_maincontent_tbselfassement ")
  18. Plugin web. htmlcheck (true, "ID: ctl00_maincontent_cbacceptterms ")
  19. Delay1000
  20. Plugin web. htmlclick ("tag: Input & Value: Submit ")
  21. Sub onscriptexit
  22. Plugin web. Tips ("script running completed ")
  23. Return
Plugin web. BIND ("wqm.exe") plugin web. go ("http://www.vrbrothers.com/cn/wqm/demo/pages/Demo-ComplexForm.aspx") // delay 3000 plugin web. htmlinput ("Button wizard", "ID: ctl00_maincontent_tbusername") plugin web. htmlinput ("password", "ID: ctl00_maincontent_tbpassword") plugin web. htmlinput ("hi@vrbrothers.com", "ID: ctl00_maincontent_tbemail") plugin web. htmlcheck (true, "ID: ctl00_maincontent_rblgender_0") plugin web. htmlselec T ("Hubei", "ID: ctl00_maincontent_ddlprovince") // delay 500 plugin web. htmlselect ("Yichang", "ID: ctl00_maincontent_ddlcity") // delay 500 plugin web. htmlselect ("4010200% 4083000", "ID: ctl00_maincontent_lbobjectives") plugin web. htmlcheck (true, "ID: ctl00_maincontent_cblhobies_0") plugin web. htmlcheck (true, "ID: ctl00_maincontent_cblhobies_1") // delay 2000 plugin web. htmlcheck (true, "ID: ctl00_maincontent_cblhobies_2") Plug In web. htmlinput ("test! "," ID: ctl00_maincontent_tbselfassement ") plugin web. htmlcheck (true, "ID: ctl00_maincontent_cbacceptterms") Delay 1000 plugin web. htmlclick ("tag: Input & Value: Submit") sub onscriptexit plugin web. tips ("script completed") Return

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.