I am trying to access a child window, kindly see this picture https://1drv.ms/u/s!AoNHROZr6p0PkGLaWzg ... F?e=PzV0Z5
Actually there are 2 buttons which are hidden in previously shown picture. They are visible in this picture https://1drv.ms/u/s!AoNHROZr6p0PkGMcfP2 ... e?e=tAfjQ5 I need to click the I Agree button shown in the later picture. To access the I Agree button I am trying this below xpath.
For your further reference I am also providing the html picture https://1drv.ms/u/s!AoNHROZr6p0PkGQyS_S ... N?e=SdxAMg for better understanding.
Code: Select all
ChromeFindElements>session_id,xpath,//*[contains(text(),'I Agree' )]//parent::tp-yt-paper-button//parent::a,elements
Appreciate your guidance.