我试图点击一些按钮,我使用下面的按钮上的抽搐作为一个例子。
我使用Selenium尝试获取按钮的xpath。作为xpath,我得到的是://span[@id='ember637']/a/span
如果我转到FireFox并复制我得到的按钮的唯一选择器:.js-follow > span:nth-child(1)
我在java程序中都试过了,但它们都不起作用。当我使用//span[..时,我会得到以下错误:
"Unable to locate a node using //span[@id='ember637']/a/span"
编辑:
我想
当我将Chromedriver与Selenium一起使用时,我得到了以下可怕的错误:
"org.openqa.selenium.WebDriverException: Element is not clickable at point (xxx, yyy). Other element would receive the click: ..."
我知道已经讨论过这个问题了
然而,我的情况在这个意义上有点不同,如果我延迟了大约5s,然后点击它就行了。我没必要做什么特别的事,等等。
我知道我可以通过使用JS或操作来强制单击,但我想要一种更优雅的处理方法,即只有在按钮可点击时才单击按
我试图写一个程序,打开链接,点击投稿按钮,然后点击给予按钮。然而,当你实际点击投稿按钮时,它会打开一个弹出,而我的程序在点击投稿按钮时什么都没做。我怎样才能点击这两个按钮呢?
package com.demo.testcases;
import org.openqa.selenium.By;
import org.openqa.selenium.JavascriptExecutor;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.safari.SafariDriver;
public class First
在python中工作,selenium,Win 7,我想点击sowcomment按钮之后,它可以点击位于这个上,由wait处理,然后我想点击showmore Comments按钮来查看更多的评论,以便刮更多的评论。在第一个按钮之后,我可以提取评论。
from selenium import webdriver
from selenium.common.exceptions import NoSuchElementException
import selenium.common.exceptions
from selenium.webdriver.common.by import By
from
我试图刮一个网站显示更多的按钮,我不能点击它。网站是:
我的代码是:
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions
from webdriver_manage
我目前正努力解决通过Selenium和ChromeDriver单击按钮的问题。我目前正在用Excel编写代码。
我在其他十几个网站上尝试了相同的代码,结果成功了。我只在下面一个问题上有问题。我试图找到按钮的CSS选择器,XPath,名称,运行一个JS,但没有工作,所以我在这里请求您的帮助。
我还试着添加隐式和显式的等待,想象一下,什么也不起作用。
目前,我别无选择。
我想点击重置按钮
Dim driver As New Selenium.ChromeDriver
Set driver = CreateObject("Selenium.ChromeDriver")
driver
selenium.click([xpath to object])
Selenium单击方法对我来说似乎搞砸了。它识别出我想要点击的按钮,并认为它点击了它。但屏幕上什么也没发生。下一行涉及到单击下一个屏幕上的另一个按钮。它失败是因为它找不到按钮,因为第一次点击实际上并没有发生。
编辑它看起来只是在屏幕改变后无法点击。它将单击登录按钮,并加载新屏幕。下一次点击失败了,但如果我轻轻地按一下(即点击按钮),脚本中的所有后续点击都运行得很好。所以这似乎是一个屏幕改变后点击的问题?
我想点击android仿真器设备上的app菜单按钮.
using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using OpenQA.Selenium.Appium.Android;
using OpenQA.Selenium.Remote;
using OpenQA.Selenium;
namespace AppTesting
{
[TestClass]
public class UnitTest1
{
AndroidDr
我使用的是角Js应用程序。使用selenium和Java.Whenever自动交配,我试着点击按钮获取异常。
Exception in thread "main" org.openqa.selenium.WebDriverException: unknown error: Element <button .</button> is not clickable at point (502, 85). Other element would receive the click: <div class="col-sm-12 move-buttons&
我使用的是java和selenium。我有一个弹出窗口,每当我单击其中的任何按钮时,它都会呈现出来,在完成我想要的东西后,我单击"X“按钮,这个异常被抛出: org.openqa.selenium.WebDriverException:未知错误: Element is not clickable at point (834,307)。其他元素将收到点击:
这里的问题是"button“和"img”指的是同一个元素(“X”按钮)。我通过类名获取元素。
我试着在点击之前等待一段时间,但它失败了,并且经常抛出相同的异常。我还试图点击"img“,但是失败了,抛出了另一个异
我有一个应用程序,其中包括一个按钮,你点击它滚动页面使用JS。
我得到一个"Element is not clickable at point (某个点,某个点)“错误,我认为这是因为selenium/protractor没有意识到动态滚动,所以没有等待它,我如何设置在尝试下一步操作之前等待的特定时间?
我正在使用Selenium Webdriver和核心Java自动化一个测试用例,在这个测试用例中,点击一个按钮,我会得到浏览器级别的通知'Show notifications with options Allow and Block‘。点击“允许”按钮后,我想验证网页推送通知的内容,并点击它们。有谁知道如何通过selenium.Notifications来实现这一点吗?会是这样的