-1
我正在使用硒进行闪存测试。我想获得嵌入标签的id
。 我用firepath得到xapth,它看起来像XPath Selenium xpath无效[2]
,当我试图检索它像
browser.getAttribute(("xpath=//[html/body/div[1]/div[6]/div/embed]"));
然后我得到com.thoughtworks.selenium.SeleniumException: ERROR: Invalid xpath [2]: //*[html/body/div[2]/div[6]/object/embedd
我使用硒2 RC。请有人帮助获取嵌入标记内的id
属性。
很好的链接,使用的XPath:http://test-able.blogspot.ie/2016/04/xpath-selectors-cheat-sheet.html – 2017-05-30 14:33:29