On Viernes, 26 de Febrero de 2010 15:12:40 [email protected] escribió:
> In order to test an AS-App i took a try on Selenium, where I can
> record user action and replay them.
> Since Selenium identifies elements by id couldn't rerun the test,
> since each element is prefixed with a changing token.  First i thought
> it would be enough to set
> config.action_controller.allow_forgery_protection = false but it still
> appends a token on each element id. Is there a way to disable this
> behavior or how can test AS with Selenium?

AS only prefixes id with a token in nested scaffolds, that token is 
params[:eid]. I don't know how Selenium works, so I don't know whether is 
possible Selenium gets eid parameter to build the id.

Also, AS suffixes id with a random token for new records inside a subform of a 
plural association.

Maybe you can override the methods which generate the tokens in a environment 
used for selenium.

-- 
Sergio Cambra .:: entreCables S.L. ::.
Mariana Pineda 23, 50.018 Zaragoza
T) 902 021 404 F) 976 52 98 07 E) [email protected]

-- 
You received this message because you are subscribed to the Google Groups 
"ActiveScaffold : Ruby on Rails plugin" 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/activescaffold?hl=en.

Reply via email to