FuckTheWorld / chromedriver

Automatically exported from code.google.com/p/chromedriver
0 stars 0 forks source link

Send Keys does not type text second time in Chrome driver #1084

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago

Issue Description:

Chrome driver can type the text in text field second time , it shows the focus 
but can not type the text values 

Steps to reproduce

1. Try to type the some value using send keys .
2.Now again refresh the browser and try to type the text using Sendkeys . This 
time it shows the focus in text input field but it does not type the text . It 
works only for the first time and rest of thee time it shows the cursor focus 
only in the text field .

Note : This issue occurring when i started using selenium 2.45 version , before 
this i was using selenium 2.41 version and did not face this issue . I think 
this issue has been started occurring in 2.45 version only . 

This issue is very simple to reproduce , Just try to type text in input text 
filed multiple time after refreshing the browser each time .

Platform :

OS - Windows 7 , Mac OS 

Browser version - Chrome 42.0
Selenium version - 2.45 
Chrome driver - 2.14 

HTML 
----------

<li class="ciad_form" ng-show="configOptions.audio.repeat">
Audio listen count                                 
<input id="audiorepeatCount" class="ng-pristine ng-untouched ng-valid 
ng-valid-maxlength" type="text" ng-click="loadInline('#iap-wrapper')" 
maxlength="2" ng-model="configOptions.audio.repeatCount" name="repeatCount"/>
</li>

My Code
-----------

public void setListenCount(String watchCount) throws InterruptedException{

    try{

        WebElement element =driver.findElement(By.cssSelector("input[id='audiorepeatCount']");
        element.clear();
        element.sendKeys(watchCount);
        Thread.sleep(2000);
    }catch(org.openqa.selenium.NoSuchElementException e){

        System.out.println("Logs"+e);
    }

}

Can any one help me on this to make it work ..
Your help is appreciated 

Thanks you so much

Original issue reported on code.google.com by perwez...@gmail.com on 24 Apr 2015 at 6:17

Attachments:

GoogleCodeExporter commented 9 years ago
I am not able to reproducible with your html & code. 
Text is typed correctly eachtime after refreshing.
Tried on three platforms:- Linux, Windows 7, and Mac OS

Browser version - Chrome 42 , Selenium version 2.45,
Chromedriver 2.14 as well as the latest version 2.15

Also, tried with the below sample code for Googlepage.

System.setProperty("webdriver.chrome.driver", 
"/usr/local/google/home/gmanikpure/Downloads/chromedriver");

WebDriver driver = new ChromeDriver();
driver.manage().timeouts().implicitlyWait(100,TimeUnit.SECONDS);

driver.get("http://google.com");          
for(int i =1 ; i<=10; i++)
    {
    WebElement element =driver.findElement(By.name("q"));
    element.clear();
    element.sendKeys("Testing"+i);
    Thread.sleep(2000);
    driver.navigate().refresh();

    }

Could you please let me know if it differs from what you are doing? 
Thanks,

Original comment by gmanikp...@chromium.org on 24 Apr 2015 at 6:07

GoogleCodeExporter commented 9 years ago
 perwez123@

could you please reply to comment#1, and let us know if this issue is still 
happening for you.

Original comment by agau...@chromium.org on 25 May 2015 at 12:42

GoogleCodeExporter commented 9 years ago
perwez123@

Is this issue still reproducible for you with latest ChromeDriver. we are 
unable to reproduce it locally. can you please let us know so that we can close 
this issue if not reproducible.

thanks

Original comment by agau...@chromium.org on 24 Jun 2015 at 1:36

GoogleCodeExporter commented 9 years ago
perwez123

Closing issue as is not reproducible with latest chromedriver:2.16.

If any one facing similar issue please raise new issue

Original comment by ssudunag...@chromium.org on 20 Jul 2015 at 8:07