我是Selenium Webdriver的新手.当我使用这个代码然后我得到输出和警告.请帮帮我,我怎么能忽略这个警告.我的代码是:
package com.webdriver.Webdriver;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.htmlunit.HtmlUnitDriver;
public class Example {
public static void main(String[] args) {
// Create a new instance of the html unit driver
// Notice that the remainder of the code relies on the interface,
// not the implementation.
WebDriver driver = new HtmlUnitDriver();
// And now use this to visit Google
driver.get( "https://mobile.twitter.com/andres/about" );
// Find the text input element by its name
//WebElement element = driver.findElement(By.xpath("//title"));
WebElement element = …Run Code Online (Sandbox Code Playgroud) 我已将JavaScript文件存储到Salesforce的Static Resources中.但我不能从Visualfroce调用那些javascript文件.请给我任何解决方案如何从visualforce调用这些javascript文件.
谢谢