Sign in to follow this  
Followers 0
tannerr12

Maven dependency

1 post in this topic

I write java test cases with selenium and than use them in a maven project by specifying the dependencies example

  <dependency>
        <groupId>org.seleniumhq.selenium</groupId>
        <artifactId>selenium-java</artifactId>
        <version>2.47.1</version>
    </dependency> 
    

I was just wondering if anyone has had any experience running autoitX  through maven and what dependencies they used?
   

Share this post


Link to post
Share on other sites



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
Sign in to follow this  
Followers 0

  • Similar Content

    • CT83
      By CT83
      I recently discovered Selenium, and in theory it sounds awesome if there were a way to use my existing autoit project's code, in Selenium. is this possible? if not, is there a way to import my au3s to Selenium project without having to rewrite all of the code.?
    • DCAlliances
      By DCAlliances
      Hi there
      We have a legacy app that utilising this AutoIt/Selenium for automating the web app that have. It's been running well since 2010 late 2014. We stoped a bit on this. Then start again this year.
      We have an issue on one of the step which is relating on PDF Save Dialog Box Stop working - basically it won't click to Save button for some reason. We pin point this and we believe it stop at lib.AU3_Send("!S",0); ... line 7 below.
      Any ideas?
       
      public void SaveDialogueBox(String filePath, String firstName, String lastName) { lib.AU3_WinWaitActive("File Download", "", 10); lib.AU3_WinActivate("File Download", ""); // Debug: VV - swap // lib.AU3_ControlClick("File Download", "", "[CLASS:Button; INSTANCE:2]","",1, 1, 1); lib.AU3_Send("!S", 0); lib.AU3_WinWaitActive("Save As", "", 10); lib.AU3_Sleep(500); lib.AU3_Send(filePath + firstName + " " + lastName, 1); lib.AU3_Sleep(2000); if (reader.getWindowVersion().equals("Windows Vista or Windows 7")) { //lib.AU3_ControlClick("Save As", "", "[CLASS:Button; INSTANCE:1]","",1, 1, 1); lib.AU3_Send("!S", 0); } else { lib.AU3_ControlClick("Save As", "", "[CLASS:Button; INSTANCE:2]","",1, 1, 1); } lib.AU3_WinWaitActive("Download complete", "", 10); lib.AU3_Sleep(2000); lib.AU3_ControlClick("Download complete", "", "[CLASS:Button; INSTANCE:4]","",1, 1, 1); lib.AU3_WinActivate("[REGEXPTITLE:.*EUC .*]", ""); }  
       
    • GoldenMike
      By GoldenMike
      I've been using AutoIt for years, I love it and it has helped me greatly. I recently started learning other languages to help expand my knowledge and found that other languages are much faster in some regards.
      I'm trying to automate a login to http://www.eedistribution.com/. I have tried this for IE with BeautifulSoup:
      driver = webdriver.Ie("D:\\Python\\IEDriverServer32.exe") driver.get("http://www.entertainmentearth.com/eedistribution.asp") inputName = driver.find_element_by_name("custnum").send_keys("user") passWord = driver.find_element_by_name("password").send_keys("password") submit = driver.find_element_by_xpath("//input[@type='image']").click() and this for firefox with BeautifulSoup:
      driver = webdriver.Firefox() driver.get("http://www.eedistribution.com/") inputName = driver.find_element_by_name("custnum").send_keys("user") passWord = driver.find_element_by_name("password").send_keys("password") submit = driver.find_element_by_xpath("//input[@type='image']").click() The website has two sides. Wholesale distribution and consumer. For some reason when I use the above scripts it takes me to the consumer side when I want to go to the wholesale side. If I manually enter user / password then I get into the wholesale side, and if use AutoIt it takes me to the wholesale side as well (this is where I want to go). I can't seem to figure out why?
      Here is the AutoItScript:
      oIE = _IEAttach("ee") $user = _IEGetObjByName($oIE, "custnum") $login = _IEGetObjByName($oIE, "password") $oInputs = _IETagNameGetCollection($oIE, "input") $user.value = "user" $login.value = "password" For $oInput in $oInputs If StringInStr($oInput.outerhtml, "signin_white.gif") > 0 Then $oInput.click() ExitLoop EndIf Next I apologize in advance for this not strictly being a AutoIt question, but am trying to learn more about how the web works in general and can't seem to understand this. As I am not a programmer and completely self taught I thought maybe someone with more experience might have an answer for this.
      Thanks,
       
      Mike
    • plastix
      By plastix
      Hi all
      Can IUIAutomation automate existing instances of Chrome to find objects (by ID, for example) within iframes and set text of inputs within them ?  I need to basically poll existing Chrome instances regularly to see if a login form is loaded (which will itself be loaded in an iframe potentially within any number of tabs/instances). Chrome will have accessibility 'on', but there are restrictions that won't permit the installation of any non-mainstream extensions etc (othewise would have looked at the _Chrome_UDF). I started dabbling with Selenium (via Selenium Wrapper ) and it worked well spawning an instance of Chrome browser etc - but I later realised that it can't attach to an existing instance of Chrome... I've looked at Junkew's IUIAutomation framework and could see might be feasible to manipulate controls by click etc - but not necessarily at a DOM / DOM tree level...
      Anyone got any experience / success with this specific issue ? TIA 
       
    • daluu
      By daluu
      This is kind of already posted here:
      '?do=embed' frameborder='0' data-embedContent>>
      but wanted to note this in this forum of example scripts in case some people only look in this forum for examples and not the other forums with respect to AutoIt integration or relation to Selenium WebDriver.
      So, the example in summary is: you can use Selenium WebDriver API to do AutoIt GUI automation (the ControlXyz() and WinXyz() functons, along with mouse and "send keys" functions). Although I suppose that might be opposite or counter to what most examples here are about - using AutoIt to do or control other stuff rather than using other stuff to control/run AutoIt. But regardless, it is an example implementation of a different use case for AutoIt beyond the general AutoIt community, like those who also use Selenium WebDriver and/or need to integrate Selenium with AutoIt for remote deployment.
      https://github.com/daluu/AutoItDriverServer
      with specific demo examples here:
      https://github.com/daluu/AutoItDriverServer/blob/master/sample-code/CalculatorTest.java
      https://github.com/daluu/AutoItDriverServer/blob/master/sample-code/calculator.py
      https://github.com/daluu/AutoItDriverServer/blob/master/sample-code/SeleniumIntegrationTest.java
      https://github.com/daluu/AutoItDriverServer/blob/master/sample-code/SeleniumIntegrationWithAutoItDriver.py