This makes sure that we don't crash when asking for the parent element of an object that has no document() because its parent was detached On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". PASS link.description is 'AXLabel: yellow' PASS link.parentElement() == null || link.parentElement().isValid is true PASS successfullyParsed is true TEST COMPLETE