Commit fd314991aba849095b4400a7f340710f2de67b6e

Authored by toby5221
1 parent a3e6db11

原厂商品和市场商品建档增加输入商品长宽高、包装长宽高

src/main/java/com/essa/pageObject/GoodsManage/AddMarketGoodsPage.java
... ... @@ -298,6 +298,30 @@ public class AddMarketGoodsPage extends BasePage {
298 298 // //横向滚动条2,滚动条与内容一起,无法拖动
299 299 // @FindBy (xpath="//*[contains(@id,'table-single-goods-sku')]/..")
300 300 // WebElement widthScroll2;
  301 +
  302 + //商品体积-长
  303 + @FindBy (xpath = "//td[@title='商品尺寸(cm)']//input[@placeholder='长']")
  304 + WebElement goodsLong;
  305 +
  306 + //商品体积-宽
  307 + @FindBy (xpath = "//td[@title='商品尺寸(cm)']//input[@placeholder='宽']")
  308 + WebElement goodsWidth;
  309 +
  310 + //商品体积-高
  311 + @FindBy (xpath = "//td[@title='商品尺寸(cm)']//input[@placeholder='高']")
  312 + WebElement goodsHigh;
  313 +
  314 + // 包装体积-长
  315 + @FindBy (xpath = "//td[@title='包装尺寸(cm)']//input[@placeholder='长']")
  316 + WebElement packeLong;
  317 +
  318 + // 包装体积-宽
  319 + @FindBy (xpath = "//td[@title='包装尺寸(cm)']//input[@placeholder='宽']")
  320 + WebElement packeWidth;
  321 +
  322 + // 包装体积-高
  323 + @FindBy (xpath = "//td[@title='包装尺寸(cm)']//input[@placeholder='高']")
  324 + WebElement packeHigh;
301 325  
302 326 //外箱体积-长
303 327 @FindBy (xpath="//*[@title='外箱体积(cm)']/div[2]/input")
... ... @@ -458,6 +482,16 @@ public class AddMarketGoodsPage extends BasePage {
458 482  
459 483 jsExecutorDragAndDrop(widthScroll1,2000,0);
460 484 mywait(packageLong);
  485 +
  486 + //商品尺寸
  487 + sendKeys(goodsLong,"10");
  488 + sendKeys(goodsWidth,"15");
  489 + sendKeys(goodsHigh,"20");
  490 +
  491 + //包装尺寸
  492 + sendKeys(packeLong,"10");
  493 + sendKeys(packeWidth,"18");
  494 + sendKeys(packeHigh,"25");
461 495  
462 496 //外箱体积
463 497 sendKeys(packageLong, "100");
... ...
src/main/java/com/essa/pageObject/GoodsManage/AddOriginalGoodsPage.java
... ... @@ -301,7 +301,31 @@ public class AddOriginalGoodsPage extends BasePage {
301 301 // //横向滚动条2,滚动条与内容一起,无法拖动
302 302 // @FindBy (xpath="//*[contains(@id,'table-single-goods-sku')]/..")
303 303 // WebElement widthScroll2;
304   -
  304 +
  305 + //商品体积-长
  306 + @FindBy (xpath = "//td[@title='商品尺寸(cm)']//input[@placeholder='长']")
  307 + WebElement goodsLong;
  308 +
  309 + //商品体积-宽
  310 + @FindBy (xpath = "//td[@title='商品尺寸(cm)']//input[@placeholder='宽']")
  311 + WebElement goodsWidth;
  312 +
  313 + //商品体积-高
  314 + @FindBy (xpath = "//td[@title='商品尺寸(cm)']//input[@placeholder='高']")
  315 + WebElement goodsHigh;
  316 +
  317 + // 包装体积-长
  318 + @FindBy (xpath = "//td[@title='包装尺寸(cm)']//input[@placeholder='长']")
  319 + WebElement packeLong;
  320 +
  321 + // 包装体积-宽
  322 + @FindBy (xpath = "//td[@title='包装尺寸(cm)']//input[@placeholder='宽']")
  323 + WebElement packeWidth;
  324 +
  325 + // 包装体积-高
  326 + @FindBy (xpath = "//td[@title='包装尺寸(cm)']//input[@placeholder='高']")
  327 + WebElement packeHigh;
  328 +
305 329 //外箱体积-长
306 330 @FindBy (xpath="//*[@title='外箱体积(cm)']/div[2]/input")
307 331 WebElement packageLong;
... ... @@ -455,7 +479,17 @@ public class AddOriginalGoodsPage extends BasePage {
455 479  
456 480 jsExecutorDragAndDrop(widthScroll1,2000,0);
457 481 mywait(packageLong);
458   -
  482 +
  483 + //商品尺寸
  484 + sendKeys(goodsLong,"10");
  485 + sendKeys(goodsWidth,"15");
  486 + sendKeys(goodsHigh,"20");
  487 +
  488 + //包装尺寸
  489 + sendKeys(packeLong,"10");
  490 + sendKeys(packeWidth,"18");
  491 + sendKeys(packeHigh,"25");
  492 +
459 493 //外箱体积
460 494 sendKeys(packageLong, "100");
461 495 sendKeys(packageWidth, "50");
... ...