我已经按照下面的代码使用materialize css在3个图像上创建了视差效果。当网页加载到dev server中时,一切都运行得很好,但是如果我从页面导航到不同的组件,然后再次返回,所有的视差图像几乎都消失了,就像视差库不再工作一样。如果我重新加载网页,它们会像往常一样重新出现。
import React, { Component } from 'react'
import code from '../images/code.jpg';
import coffee from '../images/coffee.jpg';
import mac
我试图让我的程序点击一个按钮,但我收到错误。
我的代码:
driver.FindElementById("couponsinc-gallery-selectall").Click();
错误:
An unhandled exception of type 'OpenQA.Selenium.NoSuchElementException' occurred in WebDriver.dll
no such element: Unable to locate element: {"method":"css selector","