Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Oleg Zudov
    @ToCSharp
    It gives us do some things before opening. For example look temp dir, driver wants to create
    JasonTurnbull25
    @JasonTurnbull25
    Hi Oleg. is there any way to start chrome externally and pass the process over to your asyncChromeDriver rather than having AsyncChromeDriver launch the process?
    Oleg Zudov
    @ToCSharp
                var chromeBinaryFileName = @"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe";
                var args = @"--remote-debugging-port=12255 --user-data-dir=""C:\Chrome\profiles\test1""";
                process = new Process();
                process.StartInfo.FileName = chromeBinaryFileName;
                process.StartInfo.Arguments = args;
                process.StartInfo.UseShellExecute = false;
                process.Start();
    
                var asyncChromeDriver = new AsyncChromeDriver(
                            new ChromeDriverConfig { 
                                   DoNotOpenChromeProfile = true, 
                                   IsTempProfile = false, 
                                   Port = 12255 
                });
                var webDriver = new WebDriver(asyncChromeDriver);
                await webDriver.GoToUrl("https://www.google.com/");
    
                await Task.Delay(5000);
                process.CloseMainWindow();
    JasonTurnbull25
    @JasonTurnbull25
    Thanks Oleg :)
    p3t3rBl4ck
    @p3t3rBl4ck
    hi
    I would like use the ASyncWebDriver in my proyect but I have a problem when I try install it from nuget.
    problems with framework 4.6.1 :S
    Oleg Zudov
    @ToCSharp
    Hi, can you use framework 4.6.2 ?
    p3t3rBl4ck
    @p3t3rBl4ck
    ok, I will try with 4.6.2. Thanks!
    p3t3rBl4ck
    @p3t3rBl4ck
    work it !! Thanks :)
    p3t3rBl4ck
    @p3t3rBl4ck
            var options = new ChromeOptions();
            options.AddArguments("--disable-gpu");
    
            options.AddArguments("headless");
    
            options.AddUserProfilePreference("profile.default_content_setting_values.images", 2);
    How can I get a ChromeOptions in ASyncWebDriver ? Thanks
    Oleg Zudov
    @ToCSharp
    Now we can: var lowerAttribute = await driver.FindElement(By.Id("element")).GetAttribute("value").ToLower()
    @p3t3rBl4ck Sorry, I missed your question. I'll see what to do.
    Oleg Zudov
    @ToCSharp
    var asyncChromeDriver = new AsyncChromeDriver(new ChromeDriverConfig().SetHeadless().SetCommandLineArgumets("--disable-gpu").SetWindowSize(width, height).SetIsTempProfile());
    var webDriver = new WebDriver(asyncChromeDriver);
    await webDriver.GoToUrl("https://www.google.com/");
    Are you sure it is Chrome option? Or it is from Firefox?
    options.AddUserProfilePreference("profile.default_content_setting_values.images", 2);
    Xavid Ramirez
    @xavidram
    Good Afternoon Oleg. Will you be implementing the Target Switching in the near future?
    Oleg Zudov
    @ToCSharp
    Hi. Tests on frames switching are here:
    https://github.com/ToCSharp/AsyncChromeDriver/blob/master/AsyncChromeDriver.Tests/TargetLocatorTest.cs
    I corrected a bit. It seems switching works, except exceptions when not correct index, name or id.
    Before run test, start HtmlForTests (Start Without Debugging in VS).
    Would be great, if you write your test that fails
    Oleg Zudov
    @ToCSharp
    @xavidram Sorry that I did not reply for a while
    Xavid Ramirez
    @xavidram
    Thanks. I'll take a look in a bit and add some tests that I see fail. I'll send a PR when I can.
    radia
    @radiaku
    Hello, is AsyncWebDriver can control multiple chrome, with One port debug?
    FosseGrim
    @egorsh0
    Hey. Tell me, please, is there any way to do basic authentication?
    Xavid Ramirez
    @xavidram
    @egorsh0 in most websites, you can still use URL authentication, rather than have to do basic authentication. I've had to use it as a workaround.
    oneprofittips
    @oneprofittips
    Добрый день. Можете подсказать как нужно реализовывать иннтерфейс IWindow
    для реализации изменения размера окна https://github.com/ToCSharp/AsyncChromeDriver/blob/master/AsyncChromeDriver/IAsyncWebBrowserClient/ChromeDriverWindow.cs
    oneprofittips
    @oneprofittips
    Good afternoon. Where can I view the commands for minimizing the browser window?