如何在电子表格齿轮中查找元素

时间:2018-12-21 09:19:59

标签: java selenium xpath spreadsheet winium

我正在测试电子表格的齿轮,在这里我无法找到路径,也无法找到单元格的颜色

我正在使用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);

0 个答案:

没有答案