Programming/Selenium 썸네일형 리스트형 Page Refresh & Button Click // Page Refresh try{ Thread.sleep(2000); } catch(Exception e) {} String url = driver.getCurrentUrl(); driver.navigate().to(url); try{ Thread.sleep(2000); } catch(Exception e) {} ---------------------------------------------------------------------------------------------- // Click Button driver.findElement(By.xpath("//button[contains(text(), 'OK')]")).click(); 더보기 [Selenium] 튜토리얼 ※ Selenium 설치, 실행법은 다음 링크를 참고하세요. http://xinics.tistory.com/entry/Selenium-설치-및-사용법 인터페이스 더보기 Eclipse에서 Selenium 테스트 http://soonrok.tistory.com/177 더보기 셀레니엄 명령어 Selenium Actions addLocationStrategy ( strategyName,functionDefinition ) Defines a new function for Selenium to locate elements on the page. For example, if you define the strategy "foo", and someone runs click("foo=blah"), we'll run your function, passing you the string "blah", and click on the element that your function returns, or throw an "Element not found" error if your function returns nu.. 더보기 이전 1 다음