public void Go()
        {
            //ChromeDriver chromeDriver = new ChromeDriver("C:/lqa/automationdotnet");
            ChromeDriver chromeDriver = new ChromeDriver(Application.StartupPath);

            chromeDriver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(20);
            LoginPage lp = new LoginPage();

            lp.driver = chromeDriver;
            lp.Come();

            dynamic jsonObject = new JObject();

            jsonObject.username = "******";
            jsonObject.password = "******";

            lp.DangNhap(jsonObject);

            KiemSatDieuTraTruyTo kiemSatDieuTraTruyTo = new KiemSatDieuTraTruyTo();

            kiemSatDieuTraTruyTo.driver = chromeDriver;
            kiemSatDieuTraTruyTo.Come();
            kiemSatDieuTraTruyTo.AddVuAn();

            TaoMoiVuAnPopUp taoMoiVuAnPopUp = new TaoMoiVuAnPopUp();

            taoMoiVuAnPopUp.driver = chromeDriver;

            jsonObject["quyetĐinhKhoiToVuAnSo"] = "vu an so";
            jsonObject["dieuLuatVu"]            = "tội vu khống";
            jsonObject["donViRaQuyetDinh"]      = "1";
            jsonObject["tenVuAn"]          = "VU AN SO 1";
            jsonObject["maVuCuaToaAn"]     = "TOA AN SO 1";
            jsonObject["thang"]            = "1";
            jsonObject["nam"]              = "2019";
            jsonObject["gio"]              = "10:00";
            jsonObject["noiXayRa"]         = "HA NOI";
            jsonObject["chiTietNoiXayRa"]  = "THANH PHO HA NOI";
            jsonObject["diaChiLuuTruHoSo"] = "HA NOI";
            jsonObject["ghiChu"]           = "VU AN O HA NOI";

            taoMoiVuAnPopUp.DienThongTin(jsonObject);

            //chromeDriver.FindElementByXPath("xzcvzxvzxcv").Click();

            chromeDriver.Quit();
        }
        public void Go()
        {
            JObject json       = JsonDataFromWs.Instance(id).get();//    null;//
            dynamic jsonObject = new JObject();

            jsonObject["quyetĐinhKhoiToVuAnSo"] = json["QuyetDinhKhoiTo"]["SoQuyetDinh"];
            chromeDriver = new ChromeDriver(Application.StartupPath);
            //ChromeDriver chromeDriver = new ChromeDriver("C:/lqa/automationdotnet");
            chromeDriver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(20);
            LoginPage lp = new LoginPage();

            lp.driver = chromeDriver;
            lp.Come();

            jsonObject.username = username;
            jsonObject.password = password;

            lp.DangNhap(jsonObject);


            ///////Tạo mới vụ án///////Tạo mới vụ án///////Tạo mới vụ án///////
            /////++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
            KiemSatDieuTraTruyTo kiemSatDieuTraTruyTo = new KiemSatDieuTraTruyTo();

            kiemSatDieuTraTruyTo.driver = chromeDriver;
            kiemSatDieuTraTruyTo.Come();
            //kiemSatDieuTraTruyTo.TimVuAn();

            kiemSatDieuTraTruyTo.AddVuAn();
            TaoMoiVuAnPopUp taoMoiVuAnPopUp = new TaoMoiVuAnPopUp();

            taoMoiVuAnPopUp.driver = chromeDriver;
            jsonObject["quyetĐinhKhoiToVuAnSo"] = json["QuyetDinhKhoiTo"]["SoQuyetDinh"];
            jsonObject["dieuLuatVu"]            = json["ToiDanh"]["NoiDung"];
            jsonObject["donViRaQuyetDinh"]      = json["QuyetDinhKhoiTo"]["TenDonVi"];
            jsonObject["tenVuAn"]             = json["TenVuAn"];
            jsonObject["maVuCuaToaAn"]        = json["MaSoVuAn"];
            jsonObject["loaiToiPham"]         = json["LoaiToiPham"];
            jsonObject["txtNgayXayRa"]        = json["NgayVuAn"];
            jsonObject["noiXayRa"]            = json["NoiXayRa"];
            jsonObject["chiTietNoiXayRa"]     = json["NoiXayRa"];
            jsonObject["txtNgayQDKhoiToVuAn"] = json["QuyetDinhKhoiTo"]["NgayRaQuyetDinh"];
            jsonObject["ghiChu"]             = json["TomTatSuKienPhamToi"];
            jsonObject["DieuLuatKhoiToVuAn"] = json["DieuLuatKhoiToVuAn"];
            taoMoiVuAnPopUp.DienThongTin(jsonObject);

            taoThuLy();
            taoKiemSatVien();

            TaoBiCan();
            TaoQuyetDinhBiCan();
            TaoQuyetDinhVuAn();
            TaoKetLuanDieuTra();
            TaoGiaoNhanHoSo();

            TaoKiemSatVienTruyTo();
            TaoQuyetDinhBiCanTruyTo();
            TaoQuyetDinhVuAnTruyTo();
            TaoCaoTrang();
            TaoGiaoNhanHoSoTruyTo();
            chromeDriver.Quit();
        }