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

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

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

Armands Brūns
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$$666@....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("[hidden email]");
        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

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/ae2df674-c6f2-4249-87c7-a01d654f01a1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

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

ulisesten
This post has NOT been accepted by the mailing list yet.
try using the official source
Loading...