Originally it was $browser->click("#some_id")
But i thougth it may confuse - one method for all purposes with
different behaviour. But it looks better.

Also here is one limitation for DOMDocument::getElementById():
read comments at page 
http://docs.php.net/manual/en/domdocument.getelementbyid.php
That is why i added DOCTYPE into test fixture. It can be sloved by
using XPath instead of getElementById().


On Jul 16, 12:27 pm, Nicolas Perriault <[email protected]> wrote:
> On Wed, Jul 15, 2009 at 9:57 PM, Kris
>
> Wallsmith<[email protected]> wrote:
> > I think there may be
> > a way to address them without adding a new method to the sfBrowser API.
> > Allowing a CSS selector to be passed to ->click() would accomplish the same
> > thing but with more flexibility.
>
> +1, first evaluating the string as a selector, then fallback to
> link/button label matching would be a better solution to me
> (performances are not that important in func testing). BC should be
> okay because selector syntax quite never looks like a link/button
> caption.
>
> ++
>
> --
> Nicolas Perriaulthttp://prendreuncafe.com-http://symfonians.net
> Mobile: +33 660 92 08 67
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony developers" 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/symfony-devs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to