Made a change to combat flakiness when checking for an element to be displayed
Added function to wait for element to be displayed before returning after finding an element
removed unneccessary brackets and specified a more specific exception in try catch
Merge branch 'master' into test-automation-element-displayed-flakiness
made a fix for the dev-build, which was no longer working properly when running locally
Merge pull request #5145 from guardian/test-automation-element-displayed-flakiness

Flakiness fix when checking for displayed element