获取整个页面的高度
int window_height = driver.manage().window().getSize().height;
获取整个页面的宽度
int window_height = driver.manage().window().getSize().width;
获取元素大小 高度
int height = afghanistanIdItem.getSize().getHeight();
获取元素大小 宽度
 int width = afghanistanIdItem.getSize().getWidth();
获取元素左上角 横坐标
 int xLocation = afghanistanIdItem.getLocation().getX();
获取元素左上角 纵坐标
 int yLocation = afghanistanIdItem.getLocation().getY();
获取元素中心位置 横坐标
 int centerX = afghanistanIdItem.getCenter().getX();
获取元素中心位置 纵坐标
 int centerY = afghanistanIdItem.getCenter().getY();
 logger.info("window_height" + window_height);
 logger.info("height" + height);
 logger.info("width" + width);
 logger.info("xLocation" + xLocation);
 logger.info("yLocation" + yLocation);
 logger.info("centerX" + centerX);
 logger.info("centerY" + centerY);
 int eleHeight = yLocation + (int)(height*0.79);
 int yPercent = (int)eleHeight * 100 /window_height; //44.2
 logger.info("yPercent" + yPercent);
 clickByLocationByPercent(13,yPercent);