Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
» Geting issues in identifying the elsements in webdriver
Fri Feb 17, 2017 4:41 pm by janbaskt

» WebDriver - why not to use a singlton for it?
Fri Feb 17, 2017 4:40 pm by janbaskt

» WebDriver session when using testng annotation to invoke driver instance
Fri Feb 17, 2017 4:39 pm by janbaskt

» Selenium fails to launch Chrome
Fri Feb 17, 2017 4:39 pm by janbaskt

» why do i get this error
Fri Feb 17, 2017 4:38 pm by janbaskt

» Selenium Tutorial
Thu Feb 16, 2017 5:21 pm by Rahul

» When to use Selenium IDE, RC and WebDriver
Mon Feb 13, 2017 2:35 pm by azharuddin

» How to integrate selenium with ZAPI-Zephyr
Sat Feb 11, 2017 2:25 am by gseera002c

» Selenium Webdriver
Sat Feb 04, 2017 6:47 pm by soumyamishrav@gmail.com

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 : 45
Join date : 2012-04-30
Age : 29
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