Quantcast
Channel: Active questions tagged selenium - Stack Overflow
Viewing all articles
Browse latest Browse all 99407

Selenium_Unable to click on 'continue with google' link on Gaana webpage

$
0
0

Screenshot of webpage Already tried with locator By.ID and switch to alert, switch to windows.. but no luck Please help

public class Gaana {

        public static void main(String[] args) throws InterruptedException {
            System.setProperty("webdriver.chrome.driver", "C:\\Users\\Music\\Selenium\\chromedriver.exe");  
            ChromeOptions ops = new ChromeOptions();
            ops.addArguments("--disable-notifications");
            WebDriver driver = new ChromeDriver(ops);
            driver.get("https://gaana.com/");
            Thread.sleep(3000);
            driver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);
            WebElement googleLgn = driver.findElement(By.xpath("//*[contains(text(),'Continue with Google')]"));        
            googleLgn.click();
        }               

    }


Viewing all articles
Browse latest Browse all 99407

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>