zoukankan      html  css  js  c++  java
  • WebDriver异常

     
    NoSuchElementException  
    Solutions:
    ​    1. Check the locator of your target element.
    ​    2. If the locator is current. Try to wait for page load before find element.
        3. If already wait for long time and always cannot find the element, try to use another type locator.
     
    NoSuchWindowException 
    Solutions:
        1.Check the window’s locator. 
        2.Wait page load before find the window.
     
    NoAlertPresentException
    ​Solutions:
        1.Make sure the alert( will present.
    ​    2.Wait page load before deal the alert.Exception
     
    NoSuchFrameException
    Solutions:
         1.Check the frame’s locator. 
        2.Check is the frame. has some father frame.(if has father frame. you should switch to the father frame. first)
         3.Make sure switch to the default content before switch to target frame( only for single frame)
        4.Wait page load before switch to frame.
     
    UnhandledAlertException 
    Solutions:
        1. Check if there is some alert dialog present. ( . And deal with them.
        2. If no javascript. pop window present but the exception still occurs. Make sure the developer tools is closed when running automation case. (Because since selenium 2.19. “UnhandledAlertException” added and they think the developer tool is an alert)
     
    UnexpectedTagNameException
    Solutions:
    ​    1.Check the target element’s html tag name.
        2.Try to wait for page load then initializing the selector.
     
    StaleElementReferenceException
    Solutions:
    ​    1.Re-find the element again. (Because the element has been refresh.)
     
    TimeoutException
    ​Solutions:
        1. Check the expected conditions locator.
        2.Increase the wait time.
  • 相关阅读:
    Unity AnimatorController注意事项
    OpenGL ES入门详解
    手游性能优化之深入理解Texture Compression
    Unity2016 Unity3D开发VR游戏的经验
    U3D手游《苍穹变》性能优化经验谈
    unity5之代码创建状态机,玩的666
    Unity IK(反向运动学)初探
    根运动 (Root Motion) – 工作原理
    一些传感器相关的文章
    陀螺仪与加速传感器数据的融合算法解析
  • 原文地址:https://www.cnblogs.com/vanya/p/6742572.html
Copyright © 2011-2022 走看看