Resmed interview question

Handling frames in selenium and screenshot