Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Selenium login 126mailbox, unable to locate the solution of account input box

2025-03-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/03 Report--

Use firebug to locate the account password input box on the login page of email 126. when you look at the elements, you find that ID changes every time, and you can't use ID to locate it.

Using xpath location, it is found that each location will fail. Later, it is found that the login account password input box is nested in the form iframe, so when positioning, you must first enter the iframe before you can locate it correctly.

There are three ways to locate iframe/frame, one is through ID, but through name, and the third is xpath.

For example:

Switch_to_frame (id)

Switch_to_frame (name)

If there is no ID and name, you can only locate frame,switch_to_frame (xpath) through xpath.

The following is located by Firefox through xpath

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report