Is there a library to control Chrome browser in black-box unit testing? I prefer Java, coming from a WATIJ/WATIN testing background. I am wondering what options are out there and/or if there is anything on the burner for something like this?
Asked
Active
Viewed 633 times
1
-
Do you want to test the javascript in Chrome, or are you going to test the browser itself? – James Black Jan 26 '11 at 23:45
1 Answers
0
I recommend using Selenium RC for this kind of testing. It supports Chrome and a lot of other browsers. This post has more details: How to run Google Chrome with Selenium RC?

Community
- 1
- 1

Matthew Sant
- 1,611
- 11
- 10
-
Thanks. I am still considering sticking to WATIJ+Maven2+JUnit4 and just not worrying about Chrome. I'll research Selenium but I'd rather not rely on a recorder IDE... I'd rather code from scratch using Java. Selenium may work well without the IDE but Im not seeing much information about people doing it that way. – djangofan Jan 27 '11 at 23:53
-
Selenium RC is designed specifically for programmatic control. You can write your test scripts specifying selectors (using either xpath, css or plain javascript) and assert expected values. – Matthew Sant Jan 28 '11 at 08:31