Waiting for webpage to load using Selenium Web Driver in BP

saumya sinha

New Member
Hi,
I am using Selenium web driver to automate logging into a website, but after logging in it s not waiting for the website to load and hence running into error in the next step.
Used the below code , but the whole page isnt loaded after the stage executes.
SeleniumBrowserManipulation.WaitUntilPageLoaded(decimal.ToInt32(waitTime))

Used the below to check if the last item is displayed but its throwing error if the page elements are not loaded instead of reflecting in a flag.
isDisplayed = SeleniumGetMethods.IsDisplayed(elementType, element, decimal.ToInt32(waitTime))

Please let me know any solution that waits for the element while the page loads OR waits for the complete page to load.
 
Top