leeleoo / flash-selenium

Automatically exported from code.google.com/p/flash-selenium
0 stars 0 forks source link

How to run selenium function for PHP Flex test #54

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I saw there are two php files for flex selenium php, one is flashSelenium.php 
which is the functions for flash, the other is selenium.php which is normal 
selenium php function.

My problem is the element can't be recognized when run a normal selenium 
function. For example, it can't type or click a UI element in a flex page. 

My question is if it support functions in selenium.php for Flex test. If it 
support, what should be the id of a ui element. Here is my code:

public function testLogin() {
$this->flashSelenium->open ( 
'http://devadtracker.globaltestmarket.com/dashboard/adtracker.html' );
$this->flashSelenium->waitForPageLoad ( 5000 );
$this->selenium( "user", "testers" );// user is the element can't be find
}

I tried JUnit of flex-selenium-ui, which works for me.

Original issue reported on code.google.com by wangqsh915@gmail.com on 26 Mar 2011 at 4:11