差異處

這裏顯示兩個版本的差異處。

連向這個比對檢視

Both sides previous revision 前次修改
下次修改
前次修改
rf:rf:migratetoselenium2library [2017/11/26 18:50]
tony [Introduction]
rf:rf:migratetoselenium2library [2023/06/25 09:48] (目前版本)
行 55: 行 55:
 ===== 其它問題 ===== ===== 其它問題 =====
 ==== StaleElementReferenceException:​ Message: Element is no longer attached to the DOM ==== ==== StaleElementReferenceException:​ Message: Element is no longer attached to the DOM ====
-更新為SL2後,常會在不定位置出現StaleElementReferenceException。[[http://​stackoverflow.com/​questions/​5709204/​random-element-is-no-longer-attached-to-the-dom-staleelementreferenceexception|爬文]]後,別人是說某個節點還不是有效時就去操作它而導致的。因此必須先透過Wait Until相關keywords等待節點出現後,再進行操作。+更新為SL2後,常會在不定位置出現StaleElementReferenceException。[[http://​stackoverflow.com/​questions/​5709204/​random-element-is-no-longer-attached-to-the-dom-staleelementreferenceexception|爬文]]後,別人是說某個節點還不是有效時就去操作它而導致的。因此必須先透過Wait Until相關keywords等待節點出現後,再進行操作。\\ 
 +[[http://​www.seleniumhq.org/​exceptions/​stale_element_reference.jsp|more..]] 
 +==== Firefox無法點擊可視範圍外的DOM element ==== 
 +以下是我使用會有問題的版本資訊:​ 
 +  * selenium: 3.8.0。 
 +  * seleniumLibrary:​ 3.0.0。 
 +  * selenium-server-standalone:​ 3.8.1。 
 +  * geckodriver:​ 0.19.0、0.19.1。 
 +  * firefox: 57.0.2、57.0.4。 
 +同樣的selenium版本下,chrome沒這問題:​ 
 +  * chrome: 63.0.3239.84。 
 +  * chromedriver:​ 2.34.522940。 
 +起初解決這問題使用scrollbar控制可視範圍,但實在太麻煩,所以改使用chrome去測試
 ===== Reference ===== ===== Reference =====
   * [[https://​github.com/​robotframework/​Selenium2Library/​wiki/​Differences-From-SeleniumLibrary|Differences From SeleniumLibrary]]   * [[https://​github.com/​robotframework/​Selenium2Library/​wiki/​Differences-From-SeleniumLibrary|Differences From SeleniumLibrary]]