Can not send keys to elemet using zk in selenium webdriver

i have found one element using xpath in zk but can not send keys to element.

i am using xpath of element

my code is


driver.findElement(By.xpath("/html/body/div/div/div[2]/div/div[3]/input[1]")).sendKeys(UserName);

Thread.sleep(2000);

driver.findElement(By.xpath("/html/body/div/div/div[2]/div/div[3]/input[2]")).sendKeys(PassWord);

driver.findElement(By.xpath("/html/body/div/div/div[2]/div/div[3]/input[1]")).sendKeys(UserName);

Thread.sleep(2000);

can you please help me

Default Asked on October 14, 2014 in Selenium WebDriver.

zk?

on October 14, 2014.

Hi Hope your varibales are not empty, please give us some more information.

on October 14, 2014.
Add Comment
  • 1 Answer(s)

    Can you provide URL and Element name ? What is zk?

    Train Answered on October 28, 2014.
    Add Comment
  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.