In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-21 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/03 Report--
Downloads of browser versions and drivers
Firefox download: http://ftp.mozilla.org/pub/firefox/releases/
Google browser driver downloads:
Driver and browser version mapping table
Driver download:
Http://chromedriver.storage.googleapis.com/index.html
Description:
1: in many cases, debugging is due to browser communication problems, timeouts and other problems, mostly because the browser driver does not correspond to the version, which needs to be corrected in time.
2: if the execution page is invalid, first check whether manual execution can be submitted. Sometimes there is an error in the interface of the page, but you can't see it without the prompt from the front end. Second, monitor whether you are operating under the same page object and whether the element is within the iframe. If the js execution is invalid, it is recommended that you write js directly in the console to see if it can be run in the debug mode of the browser. Make sure that the js statement syntax is correct. It can be executed smoothly in selenium.
3: some default settings of the browser may need to be changed, such as window size, default download address, etc., you need to set the properties of System.setProperty when the browser is initialized. The specific method can be Baidu to find the answer.
The following is an example:
4: recommendation of tools supported by scripting-it is very convenient to find and locate accurately.
If you need to use xpath, it is recommended to install firebug,firepath under firefox to help locate
If you need to switch server addresses, it is recommended to add local host switching tools and DNS flush quick switching and refreshing.
5:xpath syntax
Common examples:
For example, find the element value that contains the xx character: / / div [contains (text (), 'xxx')]
Find its sibling element based on an element: / / li [contains (text (), 'items with access')] / following-sibling::li [1] find its two-level parent node through an element: / / span [text () ='OK'] /.. /.. / span [2]
The most commonly used search is through name,id,class and so on: / / a [@ class='org-btn'] br/ > find its parent node at two levels through an element: / / span [text () ='OK'] /.. /.. / span [2]
The most commonly used ones are found through name,id,class and so on: / / a [@ class='org-btn']
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.