Issue
Can we use Click() functionality along with sendKeys()?? I just read a drop-down value using xpath and now i need to click on the particular value i have read. Actually its possible to use in two steps. But is there any option to read and click in a single code??
Thanks, SK
Solution
Kindly try with this. I have used Enter key as a substitute for clicking.
driver.findElement(By.xpath("xpath")).sendKeys("Talk-Talk",Keys.ENTER);
Hope this helps. Thanks.
Answered By - santhosh kumar
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.