Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Fresh new PHP Library
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Alexandre Salomé  
View profile  
 More options Nov 9 2011, 3:19 pm
From: Alexandre Salomé <alexandre.sal...@gmail.com>
Date: Wed, 9 Nov 2011 12:19:08 -0800 (PST)
Local: Wed, Nov 9 2011 3:19 pm
Subject: Fresh new PHP Library

Hello community,

I created a PHP Library for Selenium :
http://alexandre-salome.fr/blog/PHP-Selenium-Library

The main class (Browser.php<https://github.com/alexandresalome/PHP-Selenium/blob/master/src/Selen...>)
is generated from the iedoc.xml provided with the Selenium package.

The main advantage I think in this approach is that you can take benefit of
IDE completion, and "magic" methods (assert, verify) are not generated,
because they depend of "how" you want to use it.

Well, the reason of this message is first to share it with you, but more
specifically for asking you how could I enhance this library ?

I'm not satisfied of file upload, for example: you need to specify a
location on the server, or an URL. Isn't it possible to upload directly the
file ?

Well, I want to improve this library because there is a big lack in PHP
concerning Selenium, and the Selenium solution is, as far as I see, the
more robust on the market.

Waiting for your advice on it,

Best regards,

Alexandre


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Santiago Suarez Ordoñez  
View profile  
 More options Nov 12 2011, 5:13 pm
From: Santiago Suarez Ordoñez <santi...@gmail.com>
Date: Sat, 12 Nov 2011 19:13:58 -0300
Local: Sat, Nov 12 2011 5:13 pm
Subject: Re: [selenium-developers] Fresh new PHP Library

Hi Alexandre,

Thanks for sharing. I'm not a PHP guy, but I've used the PHPUnit_Selenium
library a couple of times and would love to try out yours in the future.
Regards looking forward, I think the main thing you should be thinking
about is Se2 and webdriver's API. Se2/Webdriver is where everything is
currently being done and the PHP landscape there is still a little bit
unclear.
Here's a blog post from
Adam<http://element34.ca/blog/a-survey-of-the-php-and-selenium-landscape>that
from what I've seen best describes the situation. I think a great
contribution would be to help making the current state of things better and
clearer for new PHP users, either contributing to the best library out
there or making a definitive one :)

Best,
Santi

On Wed, Nov 9, 2011 at 5:19 PM, Alexandre Salomé <alexandre.sal...@gmail.com


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alexandre Salomé  
View profile  
 More options Nov 13 2011, 1:28 pm
From: Alexandre Salomé <alexandre.sal...@gmail.com>
Date: Sun, 13 Nov 2011 10:28:04 -0800 (PST)
Local: Sun, Nov 13 2011 1:28 pm
Subject: Re: [selenium-developers] Fresh new PHP Library

Thanks for the feedback, it's was I expected: the library is already
obsolete :)

I looked at the code from Adam, but his approach is not the approach I have
on it (mainly coupled with PHPUnit).

I just want to have an independant library, usable anywhere. I started
developing with the WebDriver approach;
https://github.com/alexandresalome/PHP-Selenium/tree/webdriver.

For the moment, the only sample I can give is :

$client  = new Selenium\Client('http://localhost:4444/wd/hub');
$session = $client->createSession(new Selenium\Capabilities('firefox'));

$session->close();

It's a work in progress, I'll give you news.

Best regards,

Alexandre


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Andreas Tolf Tolfsen  
View profile   Translate to Translated (View Original)
 More options Nov 18 2011, 5:33 am
From: Andreas Tolf Tolfsen <andrea...@opera.com>
Date: Fri, 18 Nov 2011 11:33:11 +0100
Local: Fri, Nov 18 2011 5:33 am
Subject: Re: [selenium-developers] Fresh new PHP Library
* Also sprach Alexandre Salomé <alexandre.sal...@gmail.com>:

> It's a work in progress, I'll give you news.

You might want to have a look at how the Ruby bindings (and possibly the
Python bindings) are doing this.  The Ruby bindings are currently
structured this way:

  ├── selenium
  │   ├── client
  │   ├── server.rb
  │   ├── webdriver
  │   │   ├── android
  │   │   ├── chrome
  │   │   ├── common
  │   │   │   ├── action_builder.rb
  │   │   │   ├── alert.rb
  │   │   │   ├── driver.rb
  │   │   │   ├── element.rb
  │   │   │   ├── error.rb
  │   │   │   ├── keyboard.rb
  │   │   │   ├── keys.rb
  │   │   │   ├── mouse.rb
  │   │   │   ├── navigation.rb
  │   │   ├── firefox
  │   │   ├── ie
  │   │   ├── iphone
  │   │   ├── opera
  │   │   ├── remote
  │   └── webdriver.rb
  ├── selenium-client.rb
  └── selenium-webdriver.rb

It implements the Selenium RC-related stuff in /selenium/client, and the
WebDriver/RemoteWebDriver implementations in /selenium/webdriver.  IMO
it's a very well organized and structured set of bindings.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alexandre Salomé  
View profile   Translate to Translated (View Original)
 More options Dec 1 2011, 7:23 am
From: Alexandre Salomé <alexandre.sal...@gmail.com>
Date: Thu, 1 Dec 2011 04:23:06 -0800 (PST)
Local: Thurs, Dec 1 2011 7:23 am
Subject: Re: Fresh new PHP Library

Thanks for the feedback.

The current tree is looking like this :

src
└── Selenium
    ├── Capabilities.php
    ├── Client.php
    ├── Message
    │   ├── Client
    │   │   ├── SessionCloseRequest.php
    │   │   ├── SessionCreateRequest.php
    │   │   └── SessionCreateResponse.php
    │   ├── ErrorResponse.php
    │   ├── Navigation
    │   │   ├── UrlGetRequest.php
    │   │   ├── UrlGetResponse.php
    │   │   └── UrlSetRequest.php
    │   └── Session
    │       ├── ScreenshotRequest.php
    │       ├── ScreenshotResponse.php
    │       ├── SourceRequest.php
    │       ├── SourceResponse.php
    │       ├── TitleRequest.php
    │       └── TitleResponse.php
    ├── Navigation.php
    └── Session.php

I'm working regularly on it, probably finished in the beginning of next
year.

To follow it: https://github.com/alexandresalome/PHP-Selenium/tree/webdriver
The README on this page gives you details about the current API.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »