abhi111abhishek / selenium-vba

Automatically exported from code.google.com/p/selenium-vba
0 stars 0 forks source link

Firefox stops responding at certain fields #53

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Operating system : Win 7
.Net Framework version :
Office Version : 2010
SeleniumWrapper version : 1.0.16.0

What is your issue ?
I am trying to enter a value in the following field thru webdriver but firefox 
stops responding every time it reaches this field in the code; however, it 
works fine in debug mode when I execute the code step by step
Iv tried the following but nothing works. Can you pls let me know whether you 
see something that may cause this issue.

1. driver.findElementbyID("accTempForm_RollRuleVal").SendKeys "100"
2. driver.findElementbyID("accTempForm_RollRuleVal").SendKeys 100
3. val = "100"
driver.findElementByXPath("//*[@id='accTempForm_RollRuleVal']").SendKeys Val

<input type="text" name="RollRuleVal" id="accTempForm_RollRuleVal" value="" 
size="20" autocomplete="off" 
class="numeric required" onkeypress="javascript:return integerFilter(event);">

I face the same issue for the following fields as well:-

<input type="text" name="RODays" id="accTempForm_RODays" value="90" size="20" 
autocomplete="off" 
class="numeric" onkeypress="javascript:return integerFilter(event);">

<input type="text" name="BEEmployees" id="empForm_BEEmployees" value="" 
size="20" autocomplete="off" 
class="numeric required" onkeypress="javascript:return integerFilter(event);">

Original issue reported on code.google.com by rohan.ka...@gmail.com on 21 Feb 2014 at 8:57

GoogleCodeExporter commented 9 years ago
I tried this as well, but to no avail:-
driver.findElementByXPath("//*[@id='accTempForm_RollRuleVal']").SendKeys 
Chr(49) & Chr(48)

Original comment by rohan.ka...@gmail.com on 21 Feb 2014 at 8:59

GoogleCodeExporter commented 9 years ago
It looks like a timing issue.
Try to add a wait before calling sendkeys and make sure you've called the 
setImplicitWait at the beginning :

Dim driver As New SeleniumWrapper.WebDriver
driver.Start "firefox", "http://uk.news.yahoo.com"
driver.setImplicitWait 5000
...
driver.wait 1000
set ele = driver.findElementbyID("accTempForm_RollRuleVal")
ele.sendkeys "100"

Without an example to reproduce your issue, i won't be able to help much.

Original comment by florentbr on 21 Feb 2014 at 10:31

GoogleCodeExporter commented 9 years ago

Original comment by florentbr on 8 Sep 2014 at 5:40