Ty Limbic~Region for the post. I wasn't aware I needed to run the Selenium core.
I did try running $netstat -an | grep LISTEN | grep 4444 and it didn't do anything so I figured I really didn't have the Selenium core.
I tried running the $java --jar selenium-core.jar suggestion from my terminal but I got the following error:
Unrecognized option: --jar
Could not create the Java virtual machine.
I guessed you meant "-jar" rather than "--jar" so I retyped the command at the terminal but I got the following:
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 <selected package>
bash: java: command not found
So I tired "sudo apt-get selenium-core" 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.'
Any advice on how I actually install Selenium core on Ubuntu? All my other searches for information on this didn't result in anything I could use.
Also assuming that I get Selenium core running, is there any code I need to know about to "start" the Selenium core? I can't remember where I read it, but I read that you need the following code in your perl program:
$sel->start();
If so, where do I put it? I put it in my program here:
my $sel = Test::WWW::Selenium->new( host => "localhost",
port => 4444,
browser => "*chrome",
browser_url => "http://www.example
+.com/" );
$sel->start();
$sel->open("/home/index.jsp");
Did I get this code position correct?
Many thanks for the help! |