Greg
unread,Jul 31, 2012, 9:00:01 PM7/31/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to seleniu...@googlegroups.com
I know my title might be confusing so I'll go into more detail:
I have a very straight-forward scenario where I need to type a temporary password into an input box. Sometimes Selenium will input the text and it will show on the screen, and then the test will click a button, yielding a successful test. However, often the test will enter text, yet the screen will stay blank, yet Selenium registers that its action was completed successfully. Then Selenium will click a button, obviously leading to a test failure.
@test
def sometest():
..
test_page.enter_temp_password(password)
...
def enter_temp_password(self, tempPass):
try:
self.driver.find_element_by_tag_name("input").send_keys(tempPass)
except StaleElementReferenceException:
self.driver.find_element_by_tag_name("input").send_keys(tempPass)
Html:
<fieldset class="verify-fieldset">
<label for="tempPassword">Verification code</label>
<div class="error off"></div>
<input type="text" class="input-hasPlaceholder" id="tempPassword" name="tempPassword">
<div class="instructions">
<p class="resendSMS-blurb">Didn't get the text? <a "href="#" class="resendSMS-link">Resend it</a></p>
<p class="sentSMS displayNone">Text sent</p>
<span class="progress off"></span>
</div>
</fieldset>
I've tried alot of different stuff from implicit waits to funky loops as well, nothing worked 100% although implicit waits worked the best, but thats not saying much. So I'm thinking the machine I'm running my webpage on might be slightly funky. I've looked at the memory and it seems like 457/967mb are taken on the machine. Which wouldn't really raise my eyebrows, except I'm basically stumped, so imo anything is possible. Has anyone had any experience with this kind of problem before?
Thanks,
Greg