//问答模块问题类型
public static void qaSwipe(int centreX,int centreY,int endX){
driver.swipe(centreX, centreY , endX, centreY-30, 500);
}
/**
* 控件内上下滑动
* @param webElement 需要滑动的元素
*/
public static void swipeControl(WebElement webElement) {
// 获取控件开始位置的坐标轴
Point start = webElement.getLocation();
int startX = start.x;
int startY = start.y;
// 获取控件坐标轴差
Dimension q = webElement.getSize();
int x = q.getWidth();
int y = q.getHeight();
// 计算出控件结束坐标
int endX = x + startX;
int endY = y + startY;