Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to handle overlapping pages in selenium webdriver with java
    primarykey
    data
    text
    <p><img src="https://i.stack.imgur.com/f6kbj.png" alt="enter image description here">Hi i have extJS based UI. I am facing issues with overlapping pages. For e.g: I have a page which has button which will open a panel kind of thing(Note: its not a seperate frame nor a seperate window. it opens up inside the same DOM as in the parent pages DOM). The panel overlaps the underlying page. the panel has a z-index in it style attribute. Now i wish to identify controls on this panels. how can i do it in selenium webdriver. Also the chances are that the panel and the underlying page may have same controls (but underlying controls are not active). so how can we identify such controls? TIA. Hi i want to add the screen shot of the UI but i am not able to add as it says that i need at least 10 reputation to post images. how can i get 10 reputations? Also there are some controls which appear on both pages i.e the overlapped as well as overlapping page. And as its a extJS based UI the ids are getting auto-generated, CSSLocator will identify both the controls which appear on the UI and are similar. So i guess i am left with only one option of somehow hopping into the panel and then identifying the control. I tried using driver.switchTo.activeElement assuming that the underlying control is inactive but it is still not helping me. Any help in this regards. TIA</p> <p>Attached the Screenshot. Now As you can see i have the highlighted panel overlapping the underlying page and it is present in the DOM of the overlapped page too. Some pointers : 1) I tried with the XPath but this won't help as i will have to hardcode the xpath for every such control in UI(i am trying to generate dynamically xpath but it is still underway.) 2) Is there anyway that we can tell driver to select the control which has focus and is active. The DOM source is too huge to be pasted. The problematic control in question is the Start query button as seen in the screen shot which is present in twice and can appear multiple times in a page. I am working on your suggested solutions.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload