Since the tests are data driven, all of the code that manipulates the
html elements is in groovy. The only option is to set
useTelluriumApi() to false before calling these lines and then to true
afterwards but that's not the same as setting TelluriumEngine to
false. I can set the TelluriumEngine to false in the test code such as
public void testDataDriven() {
// If you are not using Tellurium Engine, you don't need to use
cache.
useTelluriumEngine(false);
but then I can't turn it off only before calling the few lines of code
in my earlier post and then turn the tellurium engine back on again.
What different behaviors will we see with useTelluriumEngine(false);
versus useTelluriumApi(false); ?
Jade
On Sep 7, 3:36 pm, Jian Fang <[email protected]> wrote:
> Well, it depends on what key events the Javascript handler responds to. If
> you use Trump to record the UI,
> what is the respond attribute for the generated UI object?
>
> Also, Tellurium new Engine may have event handling problem, simply switch
> back to Selenium to see if
> your key event works by calling
>
> useTelluriumEngine(false);
>
> Thanks,
>
> Jian
>
> On Tue, Sep 7, 2010 at 4:30 PM, Jade <[email protected]> wrote:
> > Hi again,
>
> > Our forms use a lot of ajax. In order to change a value of a text box,
> > the user has to first click on the text box. That changes the text box
> > into an input box. Then the user changes the value and presses the tab
> > key to trigger ajax to save the value.
>
> > I've tried simulating pressing the tab key with this code:
>
> > // press the tab key which triggers saving the value
> > context.keyDown(inputUid, "\\9")
> > context.keyUp(inputUid, "\\9")
>
> > but it's not moving the cursor to the next field thus the data changes
> > aren't saved.
>
> > What's the correct way to simulate pressing the tab key?
>
> > Here are my test values for the data driven tests:
>
> > useTelluriumEngine(true);
> > useTelluriumApi(true);
> > useCache true
> > useCssSelector(true);
> > useTrace(true);
>
> > Jade
>
> > --
> > 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]<tellurium-users%[email protected]>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/tellurium-users?hl=en.
--
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.