[Tutor] automate add-to-cart with python
Walter Prins
wprins at gmail.com
Wed Jan 30 15:15:07 CET 2013
Hi,
Now I just have to figure out how to write the code with the selenium
> module.
>
>
Install the Firefox extension/add-on "Selenium IDE" which will help with
that too:
http://seleniumhq.org/download/
http://seleniumhq.org/docs/02_selenium_ide.jsp#
It's effectively a browser macro recorder which can emit the action
recording in multiple languages, including 2 flavours of Python (depending
on how you're using Selenium.)
You can copy/paste the actions directly from the recorder or export them as
Python. Set the clipboard format as "Python" under the
"Options"->"Clipboard format" menu, then select some recorded commands
(click, shift-click as per usual and then ctrl-c to copy and ctrl-v to
paste, or to export them click "File"->"Export test-case as" and pick one
of the Python options.
Walter
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20130130/c7adf89b/attachment.html>
More information about the Tutor
mailing list