Switch to pop up form

I am  working on payment web application .we have a option called ” Enable Autopay with this card ” with the check box. if I check the autopay check box  , this will open the authorization form for user and to close this I just need to click  on outside this form  . I am not able to  read this xpath through firebug . i am attached the screenshots to get clear idea

SCreen 1 : Autopay check box
Inline image 1

screen2 : if I enable the autopay check box  , this will  popup the form ( its neither alert not window ) . This can close by clicking outside the form i.e on gray area

Inline image 2

Xpath for this form does not show any class , id inforamiton

xpath for the “Customer  Recurring Credit Card Payment” header : .//*[@id=’table1′]/tbody/tr/td[2]/p[1]/u/span
<span style=”font-size: 14.0pt; font-family: Arial,sans-serif”>Customer  Recurring Credit Card Payment </span>

Default Asked on July 31, 2015 in Selenium WebDriver.

Can you please add the images again , we are not able to view the samePlease add the complete Html where you can the see the form

on August 9, 2015.
Add Comment
  • 1 Answer(s)

    If it is in different frame and if you dont have any id or name .

    Select a frame by its (zero-based) index. That is, if a page has three frames, the first frame would be at index 0, the second at index 1 and the third at index 2. Once the frame has been selected, all subsequent calls on the WebDriver interface are made to that frame.

    Supporter Answered on August 9, 2015.
    Add Comment
  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.