Is there a way to enter data in a hidden field?
--
You received this message because you are subscribed to the Pyccuracy dev list.
To post to this group, send email to pycc...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/pyccuracy?hl=en
Don´t forget to visit the project's JIRA site at http://jira.stormwindproject.org:8080/browse/PYCCURACY.
On Mar 11, 8:08 am, Bernardo Heynemann <heynem...@gmail.com> wrote:
> Not that I'm aware of. I never thought you would need that, because
> Pyccuracy's focus is to simulate user interaction. I don't think an user
> would fill a hidden field. ;)
>
> If you REALLY need that you can use a custom action to do it and inside the
> custom action use:
>
> context.browser_driver.selenium (this is the actual selenium lib instance).
>
> Just beware of doing that, because you are coupling your action to a given
> browser driver and when in the future, we release new browser drivers, that
> action won't be compatible with the new ones.
>
> Cheers,
> Bernardo Heynemann
>
Please let me know if you need any more details, or if there is a way
of doing this that I'm not thinking of.
Thanks,
Matthew
On Mar 11, 8:45 am, Bernardo Heynemann <heynem...@gmail.com> wrote:
> I don't think I understand. What do you mean you have to pass an ID to the
> form? Can you elaborate more?
>
> Given that I don't have that much info, I usually try to make my forms/pages
> as testable as possible. In the company I work for we use client side
> scripting HEAVILY, so I need to test that at the UI layer. I try as much as
> I can to avoid filling hidden things or calling javascript functions in my
> test code, because as I said before, that's not what a User of my app would
> do, and I want to validate that an actual user CAN do all the things he
> needs to.
>
> Hope that helps! :) If you provide more detail I'll be more than happy to
> help you! :)
>
> Cheers,
> Bernardo Heynemann
>
Can you link to an example? Also, what's the best place for
documentation? I refer to http://www.pyccuracy.org/documentation/master/index.html,
but it doesn't seem to be up to date.
Thanks,
Matthew
On Mar 11, 10:47 pm, Bernardo Heynemann <heynem...@gmail.com> wrote:
> It does allow you to drag the slider ;)
>
> And I drag the "xxx" element to the "yyy" element
>
> Cheers,
> Bernardo Heynemann
>