Take the 2-minute tour ×
Software Quality Assurance & Testing Stack Exchange is a question and answer site for software quality control experts, automation engineers, and software testers. It's 100% free, no registration required.

I am new to Selenium automation. I have some queries to be clarified.

I have recorded and done the play back. Issue is as below:

If I use the clickAndWait command in Selenium IDE, it shows an error and continues for further execution, and the test case gets passed. Why does this sort of thing happen?

Another thing is, could I get fruitful Java code, if I export this kind of test case (having errors) using Java/Junit4/Web Driver from Selenium IDE?

share|improve this question

closed as unclear what you're asking by Bruce McLeod Aug 6 '13 at 11:02

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question.If this question can be reworded to fit the rules in the help center, please edit the question.

    
Will you please elaborate the error or situation so that answering that will be easier. Thanks. –  talktokets Jul 15 '13 at 9:37
    
What is the error it shows? –  vincebowdren Jul 15 '13 at 10:14
    
Regarding exporting to Java, I Googled for selenium IDE export to Java and found this. –  user246 Jul 15 '13 at 15:01
    
There is more information here also: sebuilder.github.io/se-builder –  djangofan Aug 1 '13 at 22:25

2 Answers 2

Based on your given info, I can draw following conclusion :

This type of error may come up after using clickAndWait when the whole page is not refreshed.

For Eg : When you click on any button, then it will just give you a popup, in that case AJAX will be called and the complete page is not refreshed. For such situation you may get the error.

If you want to remove or bypass the error you can use waitForElementPresent to make visible that element so that your test will essentially wait for the particular element.

(A detailed description would be nice so that the answer can be given exactly)

share|improve this answer

You have basically two questions,

  1. For first I am agree with Talktokets answer.. For safety, you can use waitForElementPresent.

  2. For second, yes you can use the exported java code. For beginners it will be fruitfull. After sometime, you can learn to edit/modify these codes according to your use, and then you can write such codes by your own efficiently.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.