Have used the WEBBROWSER control load the page, fill out the should fill in content, now don't know how to submit, submitted in web source code as follows,
Check for & lt;/span> Thank you for your attention
CodePudding user response:
Use this function to getElementByClassName (" but1 ")
After found objects, called directly clicked ()
CodePudding user response:
Ole_webBrowser. Object. The document. ParentWindow. ExecScript (" document. GetElementByClassName (" but1 ") [0]. Click () ", "JavaScript")
So try
CodePudding user response:
refer to the second floor xiajinxian response: ole_webBrowser. Object. The document. ParentWindow. ExecScript (" document. GetElementByClassName (" but1 ") [0]. Click () ", "JavaScript") So try Tip: object does not support getElementByClassName properties or methods CodePudding user response:
Ole_webBrowser. Object. The document. GetElementByClassName (" but1 ") [0]. Click () CodePudding user response:
reference 4 floor lzp_lrp response: ole_webBrowser. Object. The document. The getElementByClassName (" but1 ") [0]. Click () Direct quote Error: Error C0052: Bad argument list for the function: __get_attribute_item Where can this type of data query, search search less than commonly, also don't know if people with too little CodePudding user response:
Look for examples of VB, and then rewrite into PB grammar ~ CodePudding user response:
This is a tutorial http://www.w3school.com.cn/jsref/dom_obj_all.asp I usually use c # to do this