Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/selenium/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用selenium单击服务云控制台中的箭头按钮_Selenium_Salesforce_Salesforce Service Cloud - Fatal编程技术网

使用selenium单击服务云控制台中的箭头按钮

使用selenium单击服务云控制台中的箭头按钮,selenium,salesforce,salesforce-service-cloud,Selenium,Salesforce,Salesforce Service Cloud,我需要单击ServiceCloudConsole中的箭头,以使用selenium和java获得不同的选项 我一直在尝试使用 build.moveToElement(casebutton, -buttonWidth - 2, -1).click().build().perform(); 但它不起作用。请提供帮助。您能根据需要添加html吗?@Narendrajput:我在问题中提到了按钮图像。你能详细说明一下你需要什么吗?添加几行与你的按钮相关的html代码,这将帮助其他人确定具体有哪些内容?按

我需要单击ServiceCloudConsole中的箭头,以使用selenium和java获得不同的选项

我一直在尝试使用

build.moveToElement(casebutton, -buttonWidth - 2, -1).click().build().perform();

但它不起作用。请提供帮助。

您能根据需要添加html吗?@Narendrajput:我在问题中提到了按钮图像。你能详细说明一下你需要什么吗?添加几行与你的按钮相关的html代码,这将帮助其他人确定具体有哪些内容?按钮的html代码,这里ID随每次登录而变化。因此,我使用了class(x-btn-split)case,我认为您应该找到
向下箭头
按钮元素,然后执行简单的单击