<?xml version="1.0" encoding="windows-1252"?>
<node id="809318" title="Re^3: Using WWW::Selenium To Test Or Automate An Ajax Website" created="2009-11-25 06:16:03" updated="2009-11-25 06:16:03">
<type id="11">
note</type>
<author id="808894">
icleave</author>
<data>
<field name="doctext">
&lt;p&gt;Ty [Limbic~Region] for the post.  I wasn't aware I needed to run the Selenium core.

I did try running $&lt;tt&gt;netstat -an | grep LISTEN | grep 4444&lt;/tt&gt; and it didn't do anything so I figured I really didn't have the Selenium core.&lt;/p&gt;

&lt;p&gt;I tried running the $&lt;tt&gt;java --jar selenium-core.jar&lt;/tt&gt; suggestion from my terminal but I got the following error:

&lt;c&gt;Unrecognized option: --jar
Could not create the Java virtual machine.&lt;/c&gt;

I guessed you meant "&lt;tt&gt;-jar&lt;/tt&gt;" rather than "&lt;tt&gt;--jar&lt;/tt&gt;" so I retyped the command at the terminal but I got the following:&lt;/p&gt;

&lt;tt&gt;The program 'java' can be found in the following packages:
 * gij-4.3
 * java-gcj-compat-headless
 * openjdk-6-jre-headless
 * cacao
 * gij-4.2
 * jamvm
 * kaffe
Try: sudo apt-get install &lt;selected package&gt;
bash: java: command not found&lt;/tt&gt;

&lt;p&gt;So I tired "&lt;tt&gt;sudo apt-get selenium-core&lt;/tt&gt;" hoping this would work but it didn't.  So the next thing I did was try searching the Synaptic Package Manager with no luck.  I then googled and found [http://release.seleniumhq.org/selenium-core/1.0.1/selenium-core-1.0.1.zip].  I downloaded it and extracted but I couldn't make heads or tails of what to do next after reading the 'install-readme.txt.'&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Any advice on how I actually install Selenium core on Ubuntu?&lt;/b&gt;  All my other searches for information on this didn't result in anything I could use.&lt;/p&gt;

&lt;p&gt;Also assuming that I get Selenium core running, &lt;b&gt;is there any code I need to know about to "start" the Selenium core?&lt;/b&gt;  I can't remember where I read it, but I read that you need the following code in your perl program:&lt;/p&gt;

&lt;c&gt;$sel-&gt;start();&lt;/c&gt;

&lt;p&gt;If so, where do I put it?  I put it in my program here:&lt;/p&gt;

&lt;c&gt;my $sel = Test::WWW::Selenium-&gt;new( host =&gt; "localhost", 
                                    port =&gt; 4444, 
                                    browser =&gt; "*chrome", 
                                    browser_url =&gt; "http://www.example.com/" );

$sel-&gt;start();
$sel-&gt;open("/home/index.jsp");&lt;/c&gt;

&lt;p&gt;Did I get this code position correct?&lt;/p&gt;

&lt;p&gt;Many thanks for the help!&lt;/p&gt;</field>
<field name="root_node">
720018</field>
<field name="parent_node">
809138</field>
</data>
</node>
