Janos's blog

If you want to use Selenium from your PHP application you could try the php-webdriver project: https://github.com/facebook/php-webdriver

1. Create directory into your work or home directory and intsall php-webdriver.

1:  mkdir selenium_test  
2: cd selenium_test
3: git clone git://github.com/facebook/php-webdriver.git

2. Download Selenium server

http://seleniumhq.org/download

3. Start Selenium server

 java -jar selenium-server-standalone-2.28.0.jar  

5. Make your test form.

 <?php   
if (isset($_POST) && !empty($_POST)){
var_dump($_POST);
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Test HTML5 Form</title>
<link rel="stylesheet" href="css/style.css">
</head>
<body>



Name

E-mail

Phone

Website

Question/Comment




<!-- end form -->
</body>
</html>

Save this file to the testform.php and move it into your www directory or create direct link.

6. Your first simple selenium test PHP.

1:  <?php  
2:

View original post 109 more words

Advertisements

4 thoughts on “

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s