vvrajesh
11 years agoVisitor
Is there any simple method to retrieve the root node of any object
I'm a bit stuck with one of the areas on taking screenshots which includes both mobile and desktop/web combination.
When i use the following
sys.desktop.picture() - this gets me the local machine screenshot
mobile.device.desktop.picture() - this takes the mobile screenshot
I need to differentiate the screenshot based on the object which i'm testing on.
This can be done only using the root method or by reverse looping the object parent which is a tedious job.
Please let me know if there are any alteratives.