This kind of thing is always needed. If you find this good thing, you must study it: in the address bar, enter a piece of JS to set the iframe url and TEXT value in a FRAME on the page, and then click Submit. Note: The page is from other websites. Do not give answers to some Page code changes. The details are as follows:
Main Page .htm:
View plaincopy to clipboardprint?
Main. jsp:
Requirements:
1. After the home page is opened, enter a piece of JS in the address bar
Confirmation or popup prompt IHTMLDocument2 vdocument = (IHTMLDocument2) webBrowser1.Document.DomDocument; VDocument.parentWindow.execScript ("function confirm (str) {return true;}", "JavaScript"); Pop-Up confirmation vDocument.parentWindow.execScript ("function alert (str) {return true;}", "JavaScript");//Popup prompt}WebBrowser when the page is loaded, auto-click (block) of the popup box when you do some automation in the pageprivate void Webbrowser1_documentcompleted (object sender, WebBr
"); // a prompt is displayed. // your Execution Code is shown below}
12. Get the IFRAME In the webpage and set the SRC of IFRAME
Htmldocument docframe = webbrowser1.document. window. frames ["mainframe"]. document; or htmldocument docframe = webbrowser1.document. all. frames ["mainframe"]. document; docframe. all ["mainframe"]. setattribute ("src", "http://www.
for wxWidgets that use DLL.# Change the following wxpath parameters./to the installation directory of your wxwidget.Wxpath = ./
Cf =-O2-dhave_w32api_h-d1_wxmsw _-I $ (wxpath)/include-I $ (wxpath)/lib/gcc_dll/MSW-wall-I. -dwxusingdll-I $ (wxpath)/samples-dnopch
LF =-mthreads-L $ (wxpath)/lib/gcc_dll-wl, -- subsystem, windows-mwindows-kernel-lwxtiff-lwxjpeg-lwxpng-kernel-lkernel32-luser32-lgdi32-kernel-lwinspool-lwinmm-lshell32-kernel-lole32-loleaut32- luuid-lrpcrt4-ladvapi32-lwsock32-lodbc32
# E
approve = driver. findelement (by. ID ("approve "));
Approve. Click ();
Or
Approve. Submit (); // only applicable to form submission1.5.9 upload files
Upload File element operations:
Webelement adfileupload = driver. findelement (by. ID ("WAP-upload "));
String filepath = "C: \ test \ uploadfile \ media_ads \ test.jpg ";
Adfileupload. sendkeys (filepath );1.6 switching between windows and frames
Generally, it is recommended that you log on first:
Driver. switchto (). defaultcontent ();
Switch t
used only when jface cannot meet our needs. Therefore, the SWT program we designed is a mix of SWT and jface, this is why I write SWT/jface together.
The following is a program made with swing and SWT/jface respectively. We can compare the differences between them.
Swing Interface
SWT/jface Interface
1. Create a main interface windowThe first thing we need to do is to create a window on the main interface. Here I use the jface applicationwindow class. This class inherits the jface window class
1960, known as Cobol-60. Now the latest version should be Cobol-2002, and it is still being improved, the future of COBOL will support XML and other new web era technology. In other words, COBOL will continue ......
2. Why don't I retire when my COBOL is so old?As a veteran high-level programming language, COBOL has a large user base and Code. It is said that programs written in COBOL exceed 100 billion lines (cobol.org ). Another survey found that 70% of the commercial applications currently u
='radio']").attr("checked","true");2. in IFRAME, select all radio buttons in the parent window
$(window.parent.document).find("input[@type='radio']").attr("checked","true");
========================================================== ======================================
========================================================== ======================================
Use jquery to operate iframe
The 1 page contains two ifame
In leftiframe, jQuery changes the src code of mainiframe:
$("#
The access between documents, views, and frameworks in MFC has been a common topic, but I don't think there are any detailed descriptions.
For those with poor English, I checked some blogs and summarized them! I hope it will be helpful to people like me!I:1: for SDIProgramThe main framework window is the document box window (if you do not know this, you need to check the composition of the single document under MFC ).The following is a single document.Example: how to obtain the View class poin
1. The content contains two ifame
In leftiframe, jquery changes the SRC of mainiframe.Code:$ ("# Mainframe", parent.doc ument. Body). ATTR ("src ","Http://www.radys.cn")
2. If the content contains an ifame with the ID of mainiframeIfame contains a someidGet someid content
$ ("# Mainiframe "). CONTENTS (). find ("someid" ).html () HTML or $ ("# mainiframe "). contains (). find ("someid "). text () Value
3. In the parent window, select all ra
How to implement a 24-digit Color toolbar
Author/northtibet
Download source code
We all know that the tool bar of IE is colorful. This article introduces how to use it in your own applications.ProgramTo implement the 24-bit Color toolbar. 1:
Figure 1
Step 1:
Declare the member variables in the mainframe. h file:
Ctoolbar m_hottoolbar;
Create a toolbar in cmainframe: oncreate (). Assume that you have created a toolbar resource and two b
1. Connection
DatabaseQuery example, no parameterization
// Query the number of records in the database.
// 1. Output record value, for example, 78 records. 2. Obtain the output record value. 3. Connect to the database and query the number of records.
4. Compare the output record value with the record value queried from the database. If the value is equal, the operation succeeds. If the value is not equal, the operation fails.
Browser ("Zhanjiang Informatization
TestLog on to "). Page (" Zhanjia
.html () --------- id = the HTML content of the mask
Similarly, other types of objects can be found.
Second, the object in the IFRAME subpage is obtained on the parent page:$ (Window. Frames ["framename" 2.16.doc ument). Find ("# ID ")
For example: $ (window. Frames ["mainframe" ].doc ument). Find ("# mask2"); the name of IFRAME is in brackets, and the name of the object is in the end of "find.
For details, see the link:Http://blog.csdn.net/zalion/a
can solve many problems through msdn.The following text mainly refers to some of my experiences in Pointer usage in programming. please correct me if it is inappropriate.Generally, the framework we use is the MFC App Wizard (exe) Framework generated by Wizard provided by VC. There are pointer acquisition and Operation Problems in both multi-document and single-document.The following section describes the general framework and then the usage of pointers in multithreading. The class to be used mu
Install and configure the DB2 10.1 database in linuxDB2 is a relational database system developed by IBM. DB2 is mainly used in large-scale application systems and has good scalability. It can support from the mainframe to the single-user environment and be applied to OS/2, Windows, and other platforms. DB2 provides high-level data availability, integrity, security, recoverability, and execution capabilities for small-scale to large-scale applications
Copy codeThe Code is as follows: Response (paipaiparent.doc ument). find ("# Frm_Main"). attr ("src", url );
Use jquery to operate iframe
1 contains two ifame
In leftiframe, jQuery changes the src code of mainiframe:$ ("# Mainframe", parent.doc ument. body). attr ("src", "http://www.jb51.net ")
2. If the content contains an ifame with the ID of mainiframeIfame contains a someIDGet someID content
$ ("# Mainiframe "). contents (). find ("someID"
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.