Request: Wait commands are missing in new selenium IDE
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.
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.
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.
So, would you use verifyElementPresent , verifyText, verifyVisible and it will now wait automatically for the element?
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.
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.
We can add verifyNotVisible, create an issue for that command, and we'll find the time to add it.