Log in Register now
Pages: « 1 2 3 »

CentOSCentOS install firefox 3.6

Follow by good reference

All alerts about missing libraries are healing with

yum install _library name_

ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/

YIIYII selection from a database some fields

$command = Yii::app()->db->createCommand();
$surls = $command->select('db_field1', 'db_field1')->from('table_name')->where("WHERE 1")->queryAll();

CentOSHeadless Selenium Grid node

xvfb-run java -jar selenium-server-standalone-2.25.0.jar -role node -hub http://localhost:4444/grid/register & - allows to run a headless Selenium Grid node

To setup a custom Firefox profile at headless server might helps an vnc server. The following example is for CentOS.

vncserver :12 - run an vnc server( do not forget to install it)

export DISPLAY=:12 - make active display where vnc is run

firefox -P - run the Firefox profile manager

When you connect with vnc viewer client to 5012 port you'll see the Firefox profile manager

CentOSCentOS + Selenium 2 Grid

http://code.google.com/p/selenium/wiki/Grid2 - has a description how to create a hub and nodes for the Selenium 2 Grid

https://raw.github.com/semperos/clj-webdriver/master/script/grid-hub - a very useful script which allows start and stop Selenium Grid hub

https://raw.github.com/semperos/clj-webdriver/master/script/grid-node - script for single Selenium Grid node launching

http://laouini.blogspot.com/2012/01/all-hail-selenium-grid-2.html - an example how to use a configuration file for a Selenium Grid node

http://css.dzone.com/articles/selenium-2-php-code - overview PHP usage with Selenium Grid.

http://grepcode.com/file/repo1.maven.org/maven2/org.seleniumhq.selenium/selenium-server/2.4.0/defaults/GridParameters.properties - Selenium Grid parameters description

http://stackoverflow.com/questions/7328494/selenium2-firefox-use-the-default-profile - an example of usage custom Firefox profile for the Selenium which is based at compressed file.

CentOSSelenium Grid + CentOS

Step 1: Verify That JDK 1.5 is Installed

It is important to install JDK from SUN.

Step 2: Install Ant 1.7

With "Could not create task or type of type: replaceregexp" bug might be useful "yum install ant-nodeps"

Step 3: Installing Selenium Grid

3.1 Download the latest version of Selenium Grid from http://selenium-grid.seleniumhq.org/download.html

3.2 Unzip the file into a directory of your choosing (say /usr/local/selenium-grid-1.0). We will refer to the directory where Selenium Grid is installed as "Selenium Grid Home". For instance if you unzipped the distribution within /usr/local/selenium-grid-1.0, your Selenium Grid Home is /usr/local/selenium-grid-1.0.

3.3 Verify the Selenium Grid install: from the terminal window go to the Selenium Grid home directory and run: ant sanity-check

In case "No supported regular expression matcher found: java.lang.ClassNotFoundException: org.apache.tools.ant.util.regexp.Jdk14RegexpRegexp" bug "yum install ant-apache-regexp" might helps.

PHPScreenshot with phpunit and selenium RC

require_once 'PHPUnit/Extensions/SeleniumTestCase.php';

class yourTest extends PHPUnit_Extensions_SeleniumTestCase {

...

/**
* On teardown, capture a screenshot.
*/

public function tearDown() {
file_put_contents('result.png', base64_decode($this->captureEntirePageScreenshotToString()));
}
}

UbuntuAnonymous Squid

sudo nano /etc/squid/squid.conf


header_access X-Forwarded-For deny all
header_access Via deny all
header_access Cache-Control deny all

UbuntuRedmine Ubuntu Installation Guide

UbuntuUbuntu + redmine + gmail

adding
enable_starttls_auto: :true
to
/etc/redmine/default/email.yml
has fixed my problem

Ubuntuubuntu: downgrade to firefox 3.6

wget "http://download.mozilla.org/?product=firefox-3.6&os=linux&lang=en-US"

tar xvjf firefox-*.bz2

sudo cp -r firefox /usr/lib/firefox-3.6

sudo mv /usr/bin/firefox /usr/bin/firefox.old
sudo ln -s /usr/lib/firefox-3.6/firefox /usr/bin/firefox-3.6
sudo ln -s /usr/bin/firefox-3.6 /usr/bin/firefox
1-10 11-20 21-27