GNOME Bugzilla – Bug 401996
Wait a component available in certain time
Last modified: 2007-02-27 07:28:06 UTC
Steps to Reproduce: 1. Input the following script; ldtp.selectrowindex('frmWindow', 'tbl0', 0) # time.sleep(5) ldtp.click('frmWindow', 'btnDelete') Actual Results: 1. Click failed because the status of btnDelete was unable if uncoment sleep statement. Expected Results: ldtp should check the state of control in certain timeout if it was unavailable(unready or unable or non-exists).
okay, let me show another script to clarify the issue again:) Precondition: The guitimeout is 5 sec to wait the state of widget on what we want. Steps to Reproduce: 1. Open gedit. in that case, the state of Cut button was gray, right? 2. Run: ldtp.click('frm*-gedit', 'btnCut') once. 3. Run: ldtp.click('frm*-gedit', 'btnCut') again after error. Expected Results: if the state of Cut button was unenable always, both the time of executing the step2 and step3 great then 5 sec.
Sorry, it is "less than " not "great than" . (In reply to comment #1) > okay, let me show another script to clarify the issue again:) > > Precondition: > The guitimeout is 5 sec to wait the state of widget on what we want. > > Steps to Reproduce: > 1. Open gedit. in that case, the state of Cut button was gray, right? > 2. Run: ldtp.click('frm*-gedit', 'btnCut') once. > 3. Run: ldtp.click('frm*-gedit', 'btnCut') again after error. > > Expected Results: > if the state of Cut button was unenable always, both the time of executing the > step2 and step3 great then 5 sec. > okay, let me show another script to clarify the issue again:) Precondition: The guitimeout is 5 sec to wait the state of widget on what we want. Steps to Reproduce: 1. Open gedit. in that case, the state of Cut button was gray, right? 2. Run: ldtp.click('frm*-gedit', 'btnCut') once. 3. Run: ldtp.click('frm*-gedit', 'btnCut') again after error. Expected Results: if the state of Cut button was unenable always, both the time of executing the step2 and step3 less then 5 sec.
Nags, you did a great job. Very thanx you again!