我正在测试电子表格的齿轮,在这里我无法找到路径,也无法找到单元格的颜色
我正在使用Winium和Selenium来运行测试,我试图通过UI Spy,Inspect工具进行定位。
package sheet;
import java.net.MalformedURLException;
import java.net.URL;
import org.openqa.selenium.By;
import org.openqa.selenium.winium.DesktopOptions;
import org.openqa.selenium.winium.WiniumDriver;
public class Testcase {
public static void main(String[] args) throws MalformedURLException, InterruptedException{
DesktopOptions option=new DesktopOptions();
option.setApplicationPath("C:\\Program Files (x86)\\SpreadsheetGear\\SpreadsheetGear 2017 for .NET\\DotNet40\\Bin\\SpreadsheetGear2017ForWindows.exe");
Thread.sleep(3000);
WiniumDriver driver=new WiniumDriver(new URL("http://localhost:9999"), option);