예제 #1
0
        static void Main(string[] args)
        {
            IWebDriver driver = new InternetExplorerDriver();

            _driver = driver;
            driver.Manage().Window.Maximize();
            driver.Navigate().GoToUrl(@"https://trade.gf.com.cn/");
            LoginOperator lop = new LoginOperator(driver);

            if (lop.Login("210100014580", "328077", verifyCodeBuild, 5))
            {
                TradeOperator trp = new TradeOperator(driver);
            }
            //driver.Quit();
        }
예제 #2
0
        public FormTrader()
        {
            InitializeComponent();
            IWebDriver driver = new InternetExplorerDriver();

            _driver = driver;
            driver.Manage().Window.Maximize();
            driver.Navigate().GoToUrl(@"http://hippo.gf.com.cn/#StockTrade/");
            LoginOperator lop = new LoginOperator(_driver);

            if (lop.Login("210100014580", "328077"))
            {
                //TradeOperator trp = new TradeOperator(_driver);
                MessageBox.Show("succeed.");
            }
        }