Win a copy of Securing DevOps this week in the Security forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Selenium / Java Modal pop up window object recognition  RSS feed

 
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am looking at barnesandnoble.com.  At the first window it shows an ad in a pop up window.  I'm looking for a way to click on the X in the upper right hand corner to close the blocking window.  I attached the window and pop up that I am writing about.  I attached the inspection of the X object in the upper right side of the pop up.

I looked at stackoverflow.com and didn't find an answer that made sense to me.  

It has something to do with Modal windows.  This type of window in Selenium is new to me.

Can someone let me know how to identify this window.  I'm using TestNG and Page object Model code but I don't think that is a factor.    

Thanks,

Kevin



barnesandnoble-inspection-modal.PNG
[Thumbnail for barnesandnoble-inspection-modal.PNG]
modal window inspection
barnesandnobile.PNG
[Thumbnail for barnesandnobile.PNG]
Modal window on Display
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!