Jump to content

Recommended Posts

Posted

Is it possible to create WebDriver object in Autoit script in the same way as the object for WinHttp? E.g. I can use:

Local $oHTTP = ObjCreate('WinHttp.WinHttpRequest.5.1')

to get WinHttp object. Is it possible to do the same with WebDriver? Something like this:

Local $oDriver = ObjCreate('ChromeDriver')

 

  • Moderators
Posted

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

  • Moderators
Posted
39 minutes ago, Vitaliy4us said:

I saw this one million times. But there is no an answer to my question. I don't want UDF I asked about WebDriver object

My mistake, as there isn't an object per se, I thought it clear that if you want to use WebDriver, that is your best option. I probably should have spelled it out a bit more.

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Posted
44 minutes ago, JLogan3o13 said:

My mistake, as there isn't an object per se, I thought it clear that if you want to use WebDriver, that is your best option. I probably should have spelled it out a bit more.

I just found an example for Java and hoped that it would be great to be use something like this in Autoit script

public class GettingStarted {
  @Test
  public void testGoogleSearch() throws InterruptedException {
    // Optional. If not specified, WebDriver searches the PATH for chromedriver.
    System.setProperty("webdriver.chrome.driver", "/path/to/chromedriver");

    WebDriver driver = new ChromeDriver();
    driver.get("http://www.google.com/");
    Thread.sleep(5000);  // Let the user actually see something!
    WebElement searchBox = driver.findElement(By.name("q"));
    searchBox.sendKeys("ChromeDriver");
    searchBox.submit();
    Thread.sleep(5000);  // Let the user actually see something!
    driver.quit();
  }
}

Thank you for your reply.

Posted
1 hour ago, Vitaliy4us said:

I saw this one million times. But there is no an answer to my question. I don't want UDF I asked about WebDriver object

Nice to meet you Danp2. It's an honor for me to get a reply from the author of the great UDF. You are doing the great job. And thank you for this.

Posted
37 minutes ago, Vitaliy4us said:

I just found an example for Java and hoped that it would be great to be use something like this in Autoit script

I believe that this is using Selenium to launch the webdriver (ChromeDriver in this case). While this may be possible to do with Autoit, I'm not sure what the advantages / disadvantages would be over the native UDF.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...