How iframe framework to locate and describe what iframe framework of constant and variable attributes are? How multiple iframe framework deal? iframe and frame difference:

frame is divided into multiple pages of the web page. It should have a frameset frameset page  

iframe is a floating framework is coupled with a page in your page,

 

<Frame> page used to cut sideways or vertically,  

  <Iframe> for inserting a small rectangular window in the page

 

Frame typically used to set the page layout, the entire page into a few rules, each block which contains a new page.  

  iframe used to insert a new page anywhere on the page.  

————————————————

Positioning method:

1. There are id, and the only direct write id

2. name, and the only - a direct write name

3. No id, no name, first locate the iframe element

4. usually id and name will be able to solve most problems. But sometimes there is no frame of these two properties, you can use to locate WebElenment:

WebElement object, that object is achieved by find_element series method, we can use tag_name, xpath and other objects to locate the frame

5. Cut back to the main document from the frame (switch_to.default_content ())

6. Switch to the layer (two layers) on the new label, switch_to.parent_frame ()

iframe constant and variable framework properties

The same property is tag_name, a variable that class, name, id, etc.

 

How multiple iframe framework deal?

Iframe id into a plurality of lists, according to take subscript

Guess you like

Origin www.cnblogs.com/zsplovezsp/p/12153566.html