Menu file will help you use some of feature of program like login, logout, register...,
ToolBar menu will help you work with some item you will usually using like record, run,...,
Web Browser will display website when you suffering,
Using Web Automation to Login Gmail
Open program and enter link http://www.gmail.com and click button go
Right click every where on Web Browser, click Go then it show question "Do you want go to website?", if you choose yes it will get current URL you enter on the textbox, else it will get XPath of location where you right click then go to the link of the xpath.
Right click on textbox username, click fill, enter username then click ok, repeat for password
Right click on Button Login select click.
You must enter two line to ensure website load done before you continue, then you click Run and then program will go to Gmail for you.
Here is function of Web Automation, you can try by write function bellow with your parameter then click run and see what happen, notes some function need authentication to work like function number: 59 to 64, rest of another function you don't need to login.
Open new tab: tabnew();
Close current tab: tabclose();
Go to website by url or xpath: go(url); or go(xpath);
Go back: back();
Go next: next();
Reload browser: reload();
Stop browser: stop();
Wait until Web Browser has loaded or timer to wait Web Browser load: sleep(seconds, isBreakWhenWBCompleted)
Close application: exit();
Click to element: click(xpath);
Write log to Preview Tab: log(value);
Clear log write on Preview: clearlog();
Extract data from xpath: extract(xpath);
Fill data to element on Web Browser: fill(xpath, value);
By combine each function together you can automate alot of thing, automate fill textbox, click button, extract any kind of data, automate create, delete, file, folder, automate extract data from website and save it to excel file easily, update data to excel file, read data from excel file, control your mouse, your keyboard.....
This article is brought to you by Äinh CÃ´ng Tháº¯ng, Software Developer CSC Viet Nam. This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)