tag:blogger.com,1999:blog-1973750947775262558.post3399844722082151773..comments2008-10-13T07:17:18.341-04:00Comments on MXUnit Blog: Ajax Testing with MXUnit, Webdriver, and Firefoxbillyhttp://www.blogger.com/profile/06624894387927690246noreply@blogger.comBlogger19125tag:blogger.com,1999:blog-1973750947775262558.post-51974330071588426832008-10-13T07:17:00.000-04:002008-10-13T07:17:00.000-04:00thank u r information it very usefulu r blog I...thank u r information <BR/><BR/>it very useful<BR/><BR/>u r blog Is very niceMatthewhttp://www.creativewebsitedesigner.comnoreply@blogger.comtag:blogger.com,1999:blog-1973750947775262558.post-88564825473860835962008-10-08T10:56:00.000-04:002008-10-08T10:56:00.000-04:00Mike, cool! Thanks for the install tip! I'll make ...Mike, cool! Thanks for the install tip! I'll make to sure to note that and put it the verbose documentation ;-)<BR/><BR/>Let me know how it goes ...<BR/><BR/>billbillyhttp://www.blogger.com/profile/06624894387927690246noreply@blogger.comtag:blogger.com,1999:blog-1973750947775262558.post-82031528194978817172008-10-07T13:37:00.000-04:002008-10-07T13:37:00.000-04:00Okay, I got it working. Seems like I was making i...Okay, I got it working. Seems like I was making it a lot harder than it really is. I was mucking around with my ColdFusion install directly and screwing things up.<BR/><BR/>If you run the developer edition on top of IIS, the setup is really easy.<BR/><BR/>Download the cfwebdriver project from git and stuff it in your webroot with your other projects.<BR/><BR/>Then in the ColdFusion administrator under Java and JVM settings, put the path to the cfwebdriverlib directory in the box that says ColdFusion Class Path. In my case, that's c:/InetPub/wwwroot/cfwebdriver/webdriverlib.Mikehttp://www.blogger.com/profile/02592223337712827862noreply@blogger.comtag:blogger.com,1999:blog-1973750947775262558.post-45198642132450368732008-10-07T11:58:00.000-04:002008-10-07T11:58:00.000-04:00Hey Mike, It could be the way in which the webdriv...Hey Mike, <BR/><BR/>It could be the way in which the webdriver classes are loaded. Can you send me a snapshot of the classes that are loaded in CF and what your environment setup is?<BR/><BR/><BR/>thanks!<BR/>billbillhttp://www.blogger.com/profile/06624894387927690246noreply@blogger.comtag:blogger.com,1999:blog-1973750947775262558.post-59344150426502501092008-10-07T11:25:00.000-04:002008-10-07T11:25:00.000-04:00I finally got around to giving this a whirl and I'...I finally got around to giving this a whirl and I'm having a little problem. When I try to run the test files I get this message:<BR/><BR/>Class not found: org.openqa.selenium.By <BR/><BR/>This seems to be a little different than the other problems in this thread. Could this be just a bad jar?Mikehttp://www.blogger.com/profile/02592223337712827862noreply@blogger.comtag:blogger.com,1999:blog-1973750947775262558.post-11401028878262160952008-10-07T06:02:00.000-04:002008-10-07T06:02:00.000-04:00Thanks, Simon! It's coming along nicely.I'm curiou...Thanks, Simon! It's coming along nicely.<BR/><BR/>I'm curious, too, why the firefox profile was an issue with Marc. I'll get some more details and work that out. It could be something I'm doing, too, with the wrapper.<BR/><BR/>best,<BR/>billbillhttp://www.blogger.com/profile/06624894387927690246noreply@blogger.comtag:blogger.com,1999:blog-1973750947775262558.post-64050442375915818372008-10-06T17:02:00.000-04:002008-10-06T17:02:00.000-04:00Bill, this is awesome work! :)@marc: There's a sys...Bill, this is awesome work! :)<BR/><BR/>@marc: There's a system property you can set ("webdriver.firefox.bin") that tells the firefox driver where to look for the Firefox binary (note on Windows, you'll need the ".exe" on the end of the binary name)<BR/><BR/>You shouldn't need to set up the WebDriver profile yourself, WebDriver should handle that for you. Please feel free to log a bug on the site so we can help you more!Simon Stewarthttp://webdriver.googlecode.com/noreply@blogger.comtag:blogger.com,1999:blog-1973750947775262558.post-62161744943017289422008-10-04T04:44:00.000-04:002008-10-04T04:44:00.000-04:00Marc, Both those firefox profile issues have appar...Marc, <BR/><BR/>Both those firefox profile issues have apparently been resolved - having to create one and having trouble finding it. So, I'm not sure why, in your config, you had to jump through those hoops. Maybe you can send me (off line) your machine info and ff versions?<BR/><BR/>Funny, I had to create a profile on win in the older version, but on Ububtu no profile is apparently created at all! Might be the way Firefox is implemented in each OS.<BR/><BR/>FYI, there's a Safari driver and a Chrome driver is on the way. Also, for what it's worth, most of Webdriver's contributors are google folks ...<BR/><BR/><BR/>billbillhttp://www.blogger.com/profile/06624894387927690246noreply@blogger.comtag:blogger.com,1999:blog-1973750947775262558.post-17490245588853620332008-10-03T20:52:00.000-04:002008-10-03T20:52:00.000-04:00sweet! i used firefox -profilemanager, created the...sweet! i used firefox -profilemanager, created the WebDriver profile, and with the new jars you sent me the tests worked fine. <BR/><BR/>It's peculiar to me that webdriver forces you to create a profile... why not just create a default one silently? Any idea if they're intending to add that? the code says "you could use the FireFox launcher support class". But why even go through that rigamarole? <BR/><BR/>I wish webdriver had a driver.setIDoNotCareWhatYouDoAsLongAsYouWork() method.Marc Esherhttp://www.blogger.com/profile/05942611191966201181noreply@blogger.comtag:blogger.com,1999:blog-1973750947775262558.post-9188028837795150702008-10-03T19:26:00.000-04:002008-10-03T19:26:00.000-04:00Man! I tried using firefox -ProfileManager, as the...Man! I tried using firefox -ProfileManager, as the webdriver error message indicates, to no avail. but -profilemanager worked. thanks bill!Marc Esherhttp://www.blogger.com/profile/05942611191966201181noreply@blogger.comtag:blogger.com,1999:blog-1973750947775262558.post-76733333538239358052008-10-03T16:54:00.000-04:002008-10-03T16:54:00.000-04:00For my purposes (addressing a defect that wasn't e...For my purposes (addressing a defect that wasn't easy to "unit test" in my traditional understanding of the phrase, but that I wanted a test for so that I could be more confident in my fix), I switched to the htmlunit instance in my test code (and got my tests to work!!). I just downloaded the updated files, and will play around with that as time allows. Thanks!!!Rich Reinnoreply@blogger.comtag:blogger.com,1999:blog-1973750947775262558.post-2705263253338586702008-10-03T16:36:00.000-04:002008-10-03T16:36:00.000-04:00@rich, There's new jars in the download. give that...@rich, There's new jars in the download. give that a shot and keep me posted. Thanks for experimenting!<BR/><BR/>Also, as Marc mentioned, you may have to create a Webdriver firefox profile. I thought this was addressed, but I'm probably missing something. Anyway, to create a Webdriver profile open a command prompt and cd to your firefox install. execute "firefox -profilemanager" ... then create a profile called "Webdriver". This should work ...<BR/><BR/>keep me posted,<BR/>billbillhttp://www.blogger.com/profile/06624894387927690246noreply@blogger.comtag:blogger.com,1999:blog-1973750947775262558.post-47454575600763582972008-10-03T13:03:00.000-04:002008-10-03T13:03:00.000-04:00Bill-If you can update the download, that would be...Bill-<BR/><BR/>If you can update the download, that would be much appreciated. Otherwise, let me know a valid address and I can drop you an email.Rich Reinnoreply@blogger.comtag:blogger.com,1999:blog-1973750947775262558.post-36471154400249001732008-10-03T12:34:00.000-04:002008-10-03T12:34:00.000-04:00bill, i did try the new jars, and i'm running CF u...bill, i did try the new jars, and i'm running CF under my account. i get this though:<BR/><BR/>Unable to connect to Firefox. Is the WebDriver extension installed, and is there a profile called WebDriver? To set up a profile for WebDriver, simply start firefox from the command line with the "ProfileManager" switch This will look like: firefox -ProfileManager. Alternatively, use the FirefoxLauncher support class from this project <BR/><BR/>This is definitely different than the error I was getting last night using the old jars.Marc Esherhttp://www.blogger.com/profile/05942611191966201181noreply@blogger.comtag:blogger.com,1999:blog-1973750947775262558.post-84653523474754813412008-10-03T11:10:00.000-04:002008-10-03T11:10:00.000-04:00rich, that's one issue that has been resolved with...rich, that's one issue that has been resolved with Webdriver, but is not yet in the main distribution. I sent a new build to Marc, who had the same issue (Marc, did it work?). let me know and I'll send you the same build and/or update the download. A workaround might be to make sure that the coldfusion instance that is loading those classes is started using your account, and not the local system account. You can do this by starting cf from the command line; ../jrun4/bin/jrun start yourinstance<BR/><BR/>thanks for hanging with this! keep me posted.<BR/><BR/>billbillhttp://www.blogger.com/profile/06624894387927690246noreply@blogger.comtag:blogger.com,1999:blog-1973750947775262558.post-61003957558901559372008-10-03T10:49:00.000-04:002008-10-03T10:49:00.000-04:00Marc - Yeah, that's what I get for looking at the ...Marc - Yeah, that's what I get for looking at the file structure before actually trying to run it (I saw the folder structure for the IE driver, but not for FF).<BR/><BR/>After actually trying it, I get "An exception occurred while instantiating a Java object. The class must not be an interface or an abstract class. If the class has a constructor that accepts an argument, you must call the constructor explicitly using the init(args) method. Error : Unable to locate directory which should contain the information about Firefox profiles. Tried looking in: D:\JRun4\bin\null\Mozilla\Firefox". Where is the firefox path set up?Rich Reinnoreply@blogger.comtag:blogger.com,1999:blog-1973750947775262558.post-30231814228955855292008-10-03T10:03:00.000-04:002008-10-03T10:03:00.000-04:00rich, the firefox stuff is all in the jars.also, r...rich, the firefox stuff is all in the jars.<BR/><BR/>also, regarding firefox, WebDriver is looking in a hard-coded place for your firefox install. When I tried it out i had to change the path in that .cfc file because my firefox lives somewhere else.Marc Esherhttp://www.blogger.com/profile/05942611191966201181noreply@blogger.comtag:blogger.com,1999:blog-1973750947775262558.post-12892524773585652572008-10-03T09:58:00.000-04:002008-10-03T09:58:00.000-04:00Your example uses the firefox instance, but only t...Your example uses the firefox instance, but only the IE class files seem to be included in the download...?Rich Reinnoreply@blogger.comtag:blogger.com,1999:blog-1973750947775262558.post-40666134626018193142008-10-03T09:56:00.000-04:002008-10-03T09:56:00.000-04:00this is really sweet stuff bill. i'm looking very ...this is really sweet stuff bill. i'm looking very forward to where you take it!Marc Esherhttp://www.blogger.com/profile/05942611191966201181noreply@blogger.com