pause 命令的值是放在 Target框的。
css=div[id=articleGroup_900101]>div:nth(1)
div.ui-dialog.ui-widget.ui-widget-content.ui-corner-all.ui-draggable.ui-resizable
动态id定位;news浏览按钮:
driver.findElement(By.cssSelector("input[name=fileUp]")).sendKeys("C:\Users\qmcai\Desktop\test-pohtos\tornado.jpg");
driver.findElement(By.cssSelector("input[value=上传]")).click();
通过元素属性来定位;
xpath通过id来定位产品类型格式:
driver.findElement(By.xpath("id('articleGroup_900404')/div[3]"))
-------------------------------------------------------------------------
1.news下拉选择:new Select(driver.findElement(By.id("TypeNameSelection_90000401"))).selectByVisibleText("Device News");
2.#article_edit_view_com_digitnexus_scm_domain_AllocationOrder_new_from8_chzn>a>span (id>孩子节点>span,调拨单为例.)
2.#article_edit_view_com_digitnexus_scm_domain_AllocationOrder_new_to9_chzn>a>span
33. form_table_com_digitnexus_scm_domain_AllocationOrder_new td:eq(1) div a span
http://www.w3school.com.cn/html/html_intro.asp