[Windmill-dev] https; file uploads; extjs and click support
Matthew Eernisse
mde at osafoundation.org
Sun Dec 16 23:06:29 PST 2007
Adam,
It might be worth considering allowing a preventDefault option to be
passed which would call that method immediately on our events before
they are actually dispatched, if it will work. It might not be that hard
to do, and would keep us from having to add new method calls to the API.
(With a wee bit of thought I realized how silly a stopPropagation option
would be -- you'd have an event that does absolutely nothing, duh. :))
On the other hand, if you're going to keep the current new method, could
you consider naming it something more descriptive? I can think of two
specific cases where the preventDefault option comes into play a lot --
following links on a click, and the default submission of forms with the
onsubmit.
Perhaps all we need is something like clickNoFollowLink, and
submitNoSubmitActualForm or something.
On the other hand, being able to call preventDefault preemptively on all
our actions might be more flexible.
Matthew
Adam Christian wrote:
> Gary,
>
> Again in this case, for the time being I am going to blame the
> JavaScript framework for stopping propagation in a way that makes
> recording these actions nearly impossible.
>
> However, I fixed a bug in the click function keeping it from firing the
> mousedown correctly which stopped it from playing back.
>
> So the solution for now is to click 'Add Action' and set the locator
> using the DOM explorer. As I said earlier, if you want the action to
> work in the future I would set the 'Use XPath only for
> explorer/recorder' when exploring this action, because those ID's change
> constantly.
>
> The fix is checked into the trunk and will be released in 0.3.6 within
> the next few days.
>
> Sorry we couldn't make this work OOTB, but I will keep my eye out for a
> slicker fix for this rather large issue.
>
> Adam
>
> On Dec 16, 2007, at 9:10 AM, Gary Poster wrote:
>
>> Hi. I talked with Mikael on IRC yesterday: thank you again!
>>
>> I mentioned to him that we needed https for our app, and he said that
>> it was hard, but in progress. That's great to hear.
>>
>> In exploring Windmill some more today I encountered a couple of other
>> problems.
>>
>> The first is that I don't see a work-around for file uploads. For
>> what it's worth, Sahi, which appears to have a similar basic approach
>> to Windmill's, does this for the problem:
>> http://sahi.sourceforge.net/apis.html#setFile .
>>
>> Any chance you all might have a solution for file uploads coming soon?
>>
>> The second is that Windmill is missing quite a few important clicks in
>> extjs. For instance, try recording on this page: ``windmill firefox
>> http://extjs.com/deploy/dev/examples/grid/edit-grid.html`` . If you
>> click the checkboxes on the right, nothing happens in the recorder;
>> and if you use the calendar widgets, it won't see the click on a
>> number. The checkboxes are not real checkboxes, but I have the
>> "Absolute click sensitivity when recording:" option turned on. I
>> don't know about selenium or sahi on this page.
>>
>> Is this a bug that you all are willing to address?
>>
>> Thanks
>>
>> Gary
>> _______________________________________________
>> Windmill-dev mailing list
>> Windmill-dev at osafoundation.org
>> http://lists.osafoundation.org/mailman/listinfo/windmill-dev
>
> _______________________________________________
> Windmill-dev mailing list
> Windmill-dev at osafoundation.org
> http://lists.osafoundation.org/mailman/listinfo/windmill-dev
>
More information about the Windmill-dev
mailing list