JavaScript warning: Using //@ to indicate sourceMappingURL pragmas is deprecated. Use //# instead

26 views
Skip to first unread message

Armands Brūns

unread,
Jan 4, 2017, 10:22:47 PM1/4/17
to Selenium Users
Hi,

Maybe some one can help me with this error:

JavaScript warning: https://erp.demo.dineria.mx/js/jquery.min.js?v=3, line 1: Using //@ to indicate sourceMappingURL pragmas is deprecated. Use //# instead
JavaScript warning: https://erp.demo.dineria.mx/js/jquery.erp-button-select.js?v=3, line 68: unreachable code after return statement

I successfully login but inpossible to press any other button after login.

My code:

public class LoginTest {

    public static void main(String[] args) throws InterruptedException, AWTException {
       
        System.setProperty("webdriver.gecko.driver","C:\\Scripts\\geckodriver-v0.11.1-win64\\geckodriver.exe");
       
        WebDriver driver = new FirefoxDriver();
        driver.manage().window().maximize();
        driver.manage().timeouts().implicitlyWait(20L, TimeUnit.SECONDS);
        driver.get("https://dineria:$$dineria$$6...@erp.demo.dineria.mx/");
        System.out.println("Login tests!");
        System.out.println(driver.getTitle());
       
        //Input text in Javascript alert
        Alert alert = driver.switchTo().alert();
        System.out.println("Alert text = " + alert.getText());
        alert.accept();

        WebElement element = driver.findElement(By.xpath("//input[@name='identity']"));
        element.sendKeys("armands@erpmango.com");
        System.out.println("Input username");
       
        element = driver.findElement(By.xpath("//input[@name='credential']"));
        element.sendKeys("Parole123");
        System.out.println("Input password");
       
        element = driver.findElement(By.xpath("//button[@class='btn btn-default']"));
        element.click();
        System.out.println("Press Sign In");
       
        //element = driver.findElement(By.cssSelector(".dropdown-toggle.profile_toggle"));
        element = driver.findElement(By.xpath("//img[contains(@src,'/images/boy.png')]"));
        System.out.println("Press logout menu button");
        element.click();
       
        element = driver.findElement(By.xpath("//a[@class='logout']"));
        System.out.println("Logout from System");
        element.click();       

    }

}

best regards
Armands
Reply all
Reply to author
Forward
0 new messages