As
ikegami pointed out , you should be more specific , so because you are not specific I will make what I want of your question and consider that you want to write some Perl script that will use WWW::Selenium to control Selenium which will in turn control a browser by injecting js in it at runtime.
So , quoting the
WWW::Selenium documentation :
1)$sel->get_eval($script)
Gets the result of evaluating the specified JavaScript snippet.
2)$sel->run_script($script)
Creates a new "script" tag in the body of the current test window, and
+ adds the specified text into the body of the command. Scripts run in
+this way can often be debugged more easily than scripts executed usin
+gSelenium's "getEval" command. Beware that JS exceptions thrown in th
+ese scripttags aren't managed by Selenium, so you should probably wra
+p your scriptin try/catch blocks if there is any chance that the scri
+pt will throwan exception.
You can download Selenium
here , you want to download
Selenium RC.
Good luck !
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.