Share
Go down
anbarasi
Amateur
Amateur
Posts : 49
Join date : 2012-04-30
Age : 30
Location : chennai

Webdriver_Select value in Autocomplete Menu

on Mon Aug 20, 2012 6:19 pm
require_once "./phpwebdriver/WebDriver.php";
require_once "./phpwebdriver/LocatorStrategy.php";
$webdriver = new WebDriver("127.0.0.1", "4444");
$webdriver->connect("firefox");
$webdriver->get("http://192.168.2.10/po/cadmin/index.php?cmd=crm&act=addTask&csrf=LTE3MzQwMDQ1Nw__");
$element =$webdriver->findElementBy(LocatorStrategy::name, "USERNAME");
$element->sendKeys(array("ss4u" ) );
$element =$webdriver->findElementBy(LocatorStrategy::name, "hash");
$element->sendKeys(array("123456" ) );
$element->submit();
$webdriver->setPageLoadTimeout(100);
$element =$webdriver->findElementBy(LocatorStrategy::name, "customer_name");
$element->sendKeys(array("gu" ) );
$webdriver->typeKeys("customer_name", "guru");
$webdriver->setPageLoadTimeout(1000);
$webdriver->mouseOver("/html/body/ul/li/a[. = \"guru\"]");
$webdriver->findElementBy(LocatorStrategy::linkText("guru")).click();
$webdriver->click("/html/body/ul/li/a[. = \"guru\"]");*/
?>



Pls see my webdriver coding in above,i have to select the value from the listed value in Autocomplete Menu...pls acquaint me where i am wrong...
Back to top
Permissions in this forum:
You cannot reply to topics in this forum