Hi all, I have the following code:
it runs up until fixture = new SitesFixture(); than i get this error:
it says something about log4j manager missing but i didn't implement that. also i tried adding the log4j jar files from apache but still got the same error.
any help is greatly appreciated. Thank You!
package sampleProject; import java.awt.AWTException; import java.awt.Robot; import org.openqa.selenium.By; import org.openqa.selenium.Keys; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.chrome.ChromeDriver; import com.appiancorp.ps.automatedtest.fixture.SitesFixture; public class helloWorld { public static SitesFixture fixture; public static void main(String[] args) throws AWTException { // TODO Auto-generated method stub System.setProperty("webdriver.chrome.driver", "removed path name"); WebDriver driver = new ChromeDriver(); Robot robot = new Robot(); int three = 3000; driver.get("some website here"); //Maximize current window driver.manage().window().maximize(); WebElement search = driver.findElement(By.xpath("//*[@value='I Agree']")); robot.delay(three); search.click(); WebElement userName = driver.findElement(By.xpath("//*[@id='un']")); WebElement passWord = driver.findElement(By.xpath("//*[@id='pw']")); userName.sendKeys("username"); passWord.sendKeys("password"); WebElement signIn = driver.findElement(By.xpath("//*[@value='Sign In']")); signIn.click(); robot.delay(three); WebElement reports = driver.findElement(By.xpath("//*[@title='Reports']")); reports.click(); robot.delay(20); fixture = new SitesFixture(); fixture.clickOnButton("Summary Report"); } }
Discussion posts and replies are publicly visible