Click here to Skip to main content
14,977,142 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi


I can hide selenium chrome with the following codes but i want un hide it when after open link

can i do this?

What I have tried:

 Sub chrome_app()
        Dim service As ChromeDriverService = ChromeDriverService.CreateDefaultService()
        service.HideCommandPromptWindow = True

        Dim options = New ChromeOptions()
        options.AddArguments("Headless")
        '  options.AddArgument("--window-position=-32000,-32000")
        Dim driver = New ChromeDriver(service, options)


        driver.Navigate().GoToUrl("**********")
     
        driver.FindElement(By.XPath("//*[@id='ttElement']/a[4]")).Click()

''in here i want show chrome
        driver.FindElement(By.XPath("//*[@id='btnAlertModalOk']")).Click()
        driver.Close()

    End Sub
End Class
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900