selenium-ide icon indicating copy to clipboard operation
selenium-ide copied to clipboard

Request: Wait commands are missing in new selenium IDE

Open manikumary opened this issue 8 years ago • 6 comments

Hi , In my old selenium IDE tests i have used many wait commands which are not available in new IDE. I need these commands WaitForElementPresent , WaitForPageLoad, waitForText, waitForVisible)

Even these needed when i want to write new tests in new IDE. Also i could see only few commands are available in IDE please extend the command list.

manikumary avatar Feb 22 '18 06:02 manikumary

The new IDE waits automatically for you, if you need extra waits on top of what the IDE automatically does, you can use the pause command.

corevo avatar Feb 22 '18 09:02 corevo

Hi, how come pause will do all the things. For example WaitForText will wait for text appearance and when it is available it continue. It wont wait more even it is available Where as pause is like force wait. We need to mention explicit time which wont continue even after element is visible.

manikumary avatar Feb 23 '18 06:02 manikumary

So, would you use verifyElementPresent , verifyText, verifyVisible and it will now wait automatically for the element?

bryanl-csi avatar Feb 23 '18 16:02 bryanl-csi

Not exactly, all commands first wait for the page to finish loading, including any additional network requests. Then every command that takes a locator has an internal wait mechanism for that locator. For example even if you have a click command, it would wait for the element to appear. You shouldn't concern yourself with waiting, unless you reach a situation where it's not satisfactory, then you could add an extra pause, and then add the click, and the click would wait for the element to appear + whatever time you gave that pause beforehand.

Cheers, Tom

On 23 Feb 2018, 18:02 +0200, olds97lss [email protected], wrote:

So, would you use verifyElementPresent , verifyText, verifyVisible and it will now wait automatically for the element? — You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub, or mute the thread.

corevo avatar Feb 24 '18 11:02 corevo

Maybe I missed this in another ticket as I have been lurking for some time and wanted to not comment about something you already have a plan for but I haven't found an answer to this.

What if we want to verify that an element is present but not visible until we perform an action?

I test sites that won't show a form unless you perform a particular action. -- example - not show work phone if you are retired.

I use verifyNotVisible to tell me that the item is present but hidden.

hohnan avatar May 22 '18 18:05 hohnan

We can add verifyNotVisible, create an issue for that command, and we'll find the time to add it.

corevo avatar May 23 '18 07:05 corevo