In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/03 Report--
Selenium's webdriver provides eight basic element positioning methods, the first six are directly located through the attributes of the element, and the latter two need to be located with the help of the firepath plug-in:
1. Locate through id: find_element_by_id ()
Eg:driver.find_element_by_id ("kw") .send_keys ("python")
two。 Locate through name: find_element_by_name ()
3. Locate through class: find_element_by_class_name ()
4. Locate through tag: find_element_by_tag_name ()
5. Locate through link: find_element_by_link_text ()
6. Locate through partial_link: find_element_by_partial_link_text ()
7. Locate through xpath: find_element_by_xpath ()
8. Locate through css: find_element_by_css_selector ()
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.