Hi Jian,

Thanks for the reply. I will take your advice and see if I can gain
any info from debugging the error.

I am currently using selenium-server-1.0.1-te.jar as this is what I
found in the Tellurium 0.6.0 dependencies  folder available on the
download page. Is this the latest version of the custom selenium
server or is there a newer jar out there that I should be using?

Thanks,
Paul

On Jul 23, 11:58 am, Jian Fang <[email protected]> wrote:
> "XXXX is not a function" is really a general error in Selenium and it does
> not tell
> you what is the real exception, which is why we need exception hierarchy in
> Tellurium 0.7.0.
>
> Make sure you use the latest custom selenium server.
>
> What locators are you using, xpath or jQuery selector? Try both to see if
> one is working.
>
> If you use Windows system, you  can use Microsoft Script Debugger  to *debug
> *
> the error.
>
> To *debug* the javascript code, follow the following step,
>
> 1) Start custom selenium server in multiWindow mode
>
> java -jar selenium-server -multiWindow
>
> another useful command option is -*debug*, which will print out all
> trace messages
>
> 2) *Debug* the Java code in IDE and set a break point somewhere in the
> code
> 3) Once the Java process paused, open up the Microsoft script debugger
> (or Editor MSE7.exe)
> 4) Attach you debugger to the running IE instance and you will see the
> javascript you want  to *debug*, set a break point there.
> 5) Resume you Java process and it will wait there once the breakpoint
> is hit in the Javascript  debugger. Then you can step into, step over,
> or run the Javascript.
>
> Thanks,
>
> Jian
>
> On Thu, Jul 23, 2009 at 2:21 PM, Paul <[email protected]> wrote:
>
> > Hey all,
>
> > While executing what appears to be a simple test case I am getting the
> > following error message from selenium
>
> > ERROR: Command execution failure. Please search the forum at
> >http://clearspace.openqa.orgfor error details from the log window.
> > The error message is: element.dispatchEvent is not a function
>
> > I am trying to have a log file generated by uncommenting the line
>
> > logFile = "selenium.log"
>
> > in TelluriumConfig.groovy, but for some reason it is still not getting
> > generated. Maybe its because I am running Selenium externally?
>
> > This is the module I am using:
>
> > ui.Form(uid: "accountEdit", clocator: [tag: "form", id: "editPage",
> > method: "post"]){
> >                    InputBox(uid: "accountName", clocator: [tag: "input",
> > type:
> > "text", name: "acc2", id: "acc2"])
> >                    InputBox(uid: "accountSite", clocator: [tag: "input",
> > type:
> > "text", name: "acc23", id: "acc23"])
> >                    InputBox(uid: "accountRevenue", clocator: [tag: "input",
> > type:
> > "text", name: "acc8", id: "acc8"])
> >                    TextBox(uid: "heading", clocator: [tag: "h2", text:
> > "%%Account
> > Edit"])
> >                    SubmitButton(uid: "save", clocator: [tag: "input",
> > class: "btn",
> > type: "submit", title: "Save", name: "save"])
> >                }
>
> > and here is the test case:
>
> > public void doCreateAccount()
> >        {
> >            type("accountEdit.accountName", "ccc");
> >            click("accountEdit.save");
> >            waitForPageToLoad(30000);
> >        }
>
> > I have tried tweaking the module (i.e. swapping out SubmitButton with
> > Button, changing Form to Container, etc.), but that seems to have no
> > effect. It appears that it isn't a location problem anyhow though so
> > maybe the module isn't the issue. I apologize for once again being
> > unable to post source html due to the policy at my organization.
>
> > If anyone has an idea about the problem I'm having I would be very
> > glad to hear any tips / advice. Thanks for your time.
>
> > -Paul
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"tellurium-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/tellurium-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to