본문 바로가기

Web_Application

(94)
[Selenium] “IEDriverServer does not exist” error during running Selenium test with C# in Windows 7 System.Environment.SetEnvironmentVariable("webdriver.ie.driv‌​er", "c:\\Windows\\System32\\MicrosoftWebDriver.exe"); this.driver = new InternetExplorerDriver();%PATH%를 검색하는 방식이 아니라 직접 드라이버를 지정하는 방식으로 변경해야합니다. web driver download link
[Selenium] “chromedriver.exe does not exist” error during running Selenium test with C# in Windows 7 System.Environment.SetEnvironmentVariable("webdriver.chrome.driver", "c:\\Windows\\System32\\chromedriver.exe");this.driver = new InternetExplorerDriver(); %PATH%를 검색하는 방식이 아니라 직접 드라이버를 지정하는 방식으로 변경해야합니다. web driver download link
[Selenium] Unexpected error launching Internet Explorer. Protected Mode must be set to the same value IE > 인터넷옵션> 보안 인터넷, 로컬인트라넷, 신회할 수 있는 사이트, 제한된 사이트 의 보호모드를 해제하고 IE 를 재시작 합니다.
[Selenium] Web Driver download link selenium release url 에서 web driver 를 download 할 수 없게 됐습니다. 아래 개발사 download 사이트에서 web driver 를 다운로드 하시기 바랍니다. chrome driver https://sites.google.com/a/chromium.org/chromedriver/downloads microsoft web driver https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver/
[C#]제곱미터를 평으로 변환 /// /// 제곱미터를 평으로 변환 /// /// /// public string tranferSqaureMeterToPyeung(string squareMeter) { double tempSquareMeter = 0.0; string tempPyeung = "0"; try { tempSquareMeter = double.Parse(getRealNumber(squareMeter)); } catch (Exception ex) { Console.WriteLine(ex.ToString()); } tempPyeung = Math.Round((tempSquareMeter * pyeongValue), 2).ToString(); return tempPyeung; } getRealNumber 참조
[C#]문자열에서 실수부분만 추출 /// /// 문자열에서 실수부분만 추출 /// /// /// public string getRealNumber(string number) { string tempValue = "0"; try { Regex pattern = new Regex(@"[0-9]+(\.|\,)[0-9]+"); Match match = pattern.Match(number); tempValue = match.Value; } catch (Exception ex) { Console.WriteLine(ex.ToString()); } return tempValue; }
asp.net mvc ajax post 500 error javascript var formCollection = $("#frmUser").serialize(); $.post("/UserInfo/ValidateUser", formCollection, function (status, textStatus, jqXHR) { if (status.Success) { alert("OK"); } else { alert("FAIL"); } }); controller [HttpPost]public JsonResult ValidateUser(FormCollection formValues){ JsonResult result = new JsonResult(); stirng param1 = formValues["param1"]; stirng param2 = formValues["pa..
bundle 403 error bundles.Add(new StyleBundle("~/Content/css").Include( "~/Content/css/Kcommon.css", "~/Content/css/Kmain.css", "~/Content/css/Ksub.css", "~/Content/css/Kboard.css")); ~/Content -> ~/bundles 로 변경 bundles.Add(new StyleBundle("~/bundles/css").Include( "~/Content/css/Kcommon.css", "~/Content/css/Kmain.css", "~/Content/css/Ksub.css", "~/Content/css/Kboard.css"));