Search
 
 

Display results as :
 


Rechercher Advanced Search

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

Webdriver_Select value in Autocomplete Menu

View previous topic View next topic Go down

Webdriver_Select value in Autocomplete Menu

Post by anbarasi 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...

anbarasi
Amateur
Amateur

Posts : 40
Join date : 2012-04-30
Age : 28
Location : chennai

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum