tag:blogger.com,1999:blog-8053515261740493219.post8360150802639873607..comments2024-03-27T00:35:15.450-07:00Comments on Automation Testing Utilities: Handling Windows Dialogs Using Selenium Part 2Automation Testerhttp://www.blogger.com/profile/15092944995388094312noreply@blogger.comBlogger38125tag:blogger.com,1999:blog-8053515261740493219.post-76717853312598333952021-08-04T14:40:48.017-07:002021-08-04T14:40:48.017-07:00This blog is really helpful. But I am facing issue...This blog is really helpful. But I am facing issues with .dll file. Where can I find it?Please help meAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-8053515261740493219.post-8812771416575679652019-04-05T01:46:33.119-07:002019-04-05T01:46:33.119-07:00Hello,
I am facing issues regarding the handling ...Hello,<br /><br />I am facing issues regarding the handling of windows dialog on windows 10 machines. On windows 7 machines I do not have the issues.<br /><br />On of the issue is that the dialog cannot be found. I believe it is because the dll is outdated, but can somebody help me?<br /><br />Kind regardsAnonymoushttps://www.blogger.com/profile/04593152808408235606noreply@blogger.comtag:blogger.com,1999:blog-8053515261740493219.post-54154696683758176972017-05-18T23:51:06.231-07:002017-05-18T23:51:06.231-07:00Uploading file is working fine for me on Firefox b...Uploading file is working fine for me on Firefox but on Chrome its unable to identify the window.<br /><br /> WindowElement firefoxElement = handler.getWindowElement("Sample File Upload Form");Anonymoushttps://www.blogger.com/profile/00625853161359525528noreply@blogger.comtag:blogger.com,1999:blog-8053515261740493219.post-21677070262338978942016-08-24T05:14:42.641-07:002016-08-24T05:14:42.641-07:00please tell me how to use function findelementbyac...please tell me how to use function findelementbyaccesskeys and how to send combination of access keys.ANKIT MISHRAhttps://www.blogger.com/profile/06378703365274577426noreply@blogger.comtag:blogger.com,1999:blog-8053515261740493219.post-34296789995524445242016-05-02T09:55:16.030-07:002016-05-02T09:55:16.030-07:00I'm trying to use this with Selenium and Java....I'm trying to use this with Selenium and Java. I cannot handle "WindowHandler handler = new WindowHandler();", it doesn't know what to do with WindowHandler. What am I missing?<br /><br />Jacob is defined as follows: <br /><br />System.setProperty("jacob.dll.path", "C:\\Users\\CookP\\workspace\\jacob-1.18\\jacob-1.17-M2-x86.dll");<br /><br />System.loadLibrary("C:\\Users\\CookP\\workspace\\jacob-1.18\\jacob-1.17-M2-x86.dll");Anonymoushttps://www.blogger.com/profile/10882693776659505181noreply@blogger.comtag:blogger.com,1999:blog-8053515261740493219.post-38199864542606494902015-07-21T03:07:32.507-07:002015-07-21T03:07:32.507-07:00Hi facing a problem in coding while dialog box pop...Hi facing a problem in coding while dialog box popup and select a item form drop-down and click on select button.<br />Can anyone help regarding this!!Anonymoushttps://www.blogger.com/profile/17958680811790614434noreply@blogger.comtag:blogger.com,1999:blog-8053515261740493219.post-31768273543199567992015-07-21T03:05:29.675-07:002015-07-21T03:05:29.675-07:00Hi facing a problem in coding while dialog box pop...Hi facing a problem in coding while dialog box popup and select a item form drop-down and click on select button.<br />Can anyone help regarding this!!Anonymoushttps://www.blogger.com/profile/17958680811790614434noreply@blogger.comtag:blogger.com,1999:blog-8053515261740493219.post-45856176765454926562015-07-01T22:41:25.375-07:002015-07-01T22:41:25.375-07:00Firefox authentication flow works fine only on a D...Firefox authentication flow works fine only on a Desktop in Unlocked state. Is there a way to get it working on Locked screen as well? I get the following error message when I run the tests on machine where desktop is in locked state: OS windows 7 64bit<br />Exception in thread "main" [ATU Windows Handler Framework Exception] Unable <br />to Type Text for the Given Element<br /> at atu.utils.windows.handler.WindowHandler.typeKeys(WindowHandler.java:348)Anonymoushttps://www.blogger.com/profile/10672084002060518156noreply@blogger.comtag:blogger.com,1999:blog-8053515261740493219.post-83941896994266325422015-06-17T03:26:55.043-07:002015-06-17T03:26:55.043-07:00This comment has been removed by the author.Basant Kumarhttps://www.blogger.com/profile/10405055875304105553noreply@blogger.comtag:blogger.com,1999:blog-8053515261740493219.post-12216013171040095342014-12-26T01:08:32.970-08:002014-12-26T01:08:32.970-08:00can you please provide the link to download SOBcan you please provide the link to download SOBAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-8053515261740493219.post-9782012128415582852014-09-17T02:27:52.884-07:002014-09-17T02:27:52.884-07:00Hi,
I registered the ATU_WindowsHandler.DLL
I unab...Hi,<br />I registered the ATU_WindowsHandler.DLL<br />I unable to add jacob-version-x86.dll reference <br />Can you provide file upload in firefox in c# lang? Adminhttps://www.blogger.com/profile/14221427366074935042noreply@blogger.comtag:blogger.com,1999:blog-8053515261740493219.post-78813520268126961122014-07-30T10:38:45.572-07:002014-07-30T10:38:45.572-07:00Fix the Project Setup ! Adding the jar to your bui...Fix the Project Setup ! Adding the jar to your build path should fix the import error.<br /><br />#ATAutomation Testerhttps://www.blogger.com/profile/15092944995388094312noreply@blogger.comtag:blogger.com,1999:blog-8053515261740493219.post-62326972184993823862014-07-14T04:24:59.982-07:002014-07-14T04:24:59.982-07:00Hi,
I did the following:
I registered ATU_WindowsH...Hi,<br />I did the following:<br />I registered ATU_WindowsHandler.dll (64 bit). I imported the ATU_Selenium_Utilities_2.0.jar file into my project. I also added the following lines of code. <br />System.setProperty("jacob.dll.path", "C:\\workspace\\MyProject\\lib\\jacob-1.18-M2-x64.dll");<br />LibraryLoader.loadJacobLibrary(); <br /><br />I see the following:<br />WindowsHandlerException is not resolved. It does recognize the WindowElement and the WindowHandler. It also asks me to add this exception if I remove it but is unable to resolve it. Can you provide any suggestion to fix this.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8053515261740493219.post-27736868447827360122014-07-11T03:19:42.348-07:002014-07-11T03:19:42.348-07:00You can find the download links in the main page o...You can find the download links in the main page of "Handling Windows Dialogs Using Selenium" section.<br /><br />#ATAutomation Testerhttps://www.blogger.com/profile/15092944995388094312noreply@blogger.comtag:blogger.com,1999:blog-8053515261740493219.post-43861125034063914322014-07-10T08:17:11.705-07:002014-07-10T08:17:11.705-07:00Hi AT,
Can you please point me the link to jar wh...Hi AT,<br /><br />Can you please point me the link to jar which has the following classes<br />WindowHandler, WindowElement and LibraryLoader<br /><br />Thanks,<br />Sai Arun JSai Arunhttps://www.blogger.com/profile/07389467992721947245noreply@blogger.comtag:blogger.com,1999:blog-8053515261740493219.post-8871502763137777762014-06-24T01:40:51.808-07:002014-06-24T01:40:51.808-07:00Hello,
have .NET 3.0 installed in your machine wh...Hello,<br /><br />have .NET 3.0 installed in your machine which is required for UISpy.<br /><br />#ATAutomation Testerhttps://www.blogger.com/profile/15092944995388094312noreply@blogger.comtag:blogger.com,1999:blog-8053515261740493219.post-90678494392056911162014-06-23T23:14:42.610-07:002014-06-23T23:14:42.610-07:00I was able to run "C:\Windows\Microsoft.NET\F...I was able to run "C:\Windows\Microsoft.NET\Framework\v4.0.30319\regasm ATU_WindowsHandler.dll /codebase " command with out error.Anonymoushttps://www.blogger.com/profile/05260568677719445621noreply@blogger.comtag:blogger.com,1999:blog-8053515261740493219.post-30178996416462763442014-06-23T23:13:52.658-07:002014-06-23T23:13:52.658-07:00This comment has been removed by the author.Anonymoushttps://www.blogger.com/profile/05260568677719445621noreply@blogger.comtag:blogger.com,1999:blog-8053515261740493219.post-79976899687685176952014-06-23T23:12:27.960-07:002014-06-23T23:12:27.960-07:00Hi AT,
Is there any limitation in Windows 2008 Se...Hi AT,<br /><br />Is there any limitation in Windows 2008 Server.<br />When i launch UISpy it throws the following error : <br />{{<br /><br />Description:<br /> Stopped working<br /><br />Problem signature:<br /> Problem Event Name: CLR20r3<br /> Problem Signature 01: uispy.exe<br /> Problem Signature 02: 6.0.5808.16384<br /> Problem Signature 03: 45305459<br /> Problem Signature 04: UISpy<br /> Problem Signature 05: 3.0.0.0<br /> Problem Signature 06: 45305459<br /> Problem Signature 07: f3<br /> Problem Signature 08: 7f<br /> Problem Signature 09: System.IO.FileNotFoundException<br /> OS Version: 6.1.7601.2.1.0.272.7<br /> Locale ID: 1033<br /><br />Read our privacy statement online:<br /> http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409<br /><br />If the online privacy statement is not available, please read our privacy statement offline:<br /> C:\Windows\system32\en-US\erofflps.txt<br /><br /><br />}}<br /><br />Also when i run handler.getWindowElement("**** - Windows Internet Explorer"); it returns false though the window is present, it works fine in Windows7.<br /><br />Please suggest.<br /><br />Regards,<br />VinayAnonymoushttps://www.blogger.com/profile/05260568677719445621noreply@blogger.comtag:blogger.com,1999:blog-8053515261740493219.post-52310154662646982412014-06-10T08:00:33.337-07:002014-06-10T08:00:33.337-07:00small correction in the above code, replace AUTThr...small correction in the above code, replace AUTThread constructor with ThreadToClickOnBrowse <br /><br />{{<br /><br />public class ThreadToClickOnBrowse implements Runnable{<br /><br />static WebDriver browser;<br />static String locator;<br />ThreadToClickOnBrowse (WebDriver ffdriver, String loc){<br />browser = ffdriver;<br />locator=loc;<br /><br />}<br />@Override<br />public void run() {<br />browser.findElement(By.xpath(locator)).click();<br />}<br /><br />}<br /><br /><br /><br />}}Anonymoushttps://www.blogger.com/profile/05260568677719445621noreply@blogger.comtag:blogger.com,1999:blog-8053515261740493219.post-80335671980054451812014-06-10T07:54:56.549-07:002014-06-10T07:54:56.549-07:00Hi Pradeep,
Try the below code
{{
//Create th...Hi Pradeep,<br /><br />Try the below code <br />{{<br /><br /><br /><br />//Create the below class and call it in your function Windows_Handler_Upload <br /><br />public class ThreadToClickOnBrowse implements Runnable{<br /><br /> static WebDriver browser;<br /> static String locator;<br /> AUTThread(WebDriver ffdriver, String loc){<br /> browser = ffdriver;<br /> locator=loc;<br /> <br /> }<br /> @Override<br /> public void run() {<br /> browser.findElement(By.xpath(locator)).click();<br /> }<br /> <br />}<br /><br />//modified function<br /><br />public int Windows_Handler_Upload(Object[] enter) throws WindowsHandlerException, InterruptedException{<br />int flag=0;<br />ffdriver.findElement(By.xpath("/html/body/div[12]/div/div/div/div[3]/ul/li[2]/a/img")).click();<br /><br />Thread t1 = new Thread(new ThreadToClickOnBrowse(ffdriver, "/html/body/div[12]/div/div/div/div[3]/ul/li[2]/a/img");<br />t1.start();<br /><br />Thread.sleep(5000);<br />try{<br />WindowHandler handler = new WindowHandler();<br />Thread.sleep(5000);<br />System.setProperty("To_Upload", "C:\\Users\\janani.r\\Desktop\\Test_Text_4.txt");<br />WindowElement firefoxElement = handler.getWindowElement("Synchronoss - Mozilla Firefox");<br />WindowElement uploadElement = handler.findElementByName(firefoxElement,"File Upload");<br />WindowElement fileNamePath = handler.findElementByNameAndClassName(uploadElement, "File name:", "Edit");<br />handler.typeKeys(fileNamePath, System.getProperty("To_Upload"));<br />WindowElement openButton = handler.findElementByName(uploadElement,"Open");<br />handler.click(openButton);<br />System.out.println("Executed");<br />flag=1;<br /><br />}<br />catch (InterruptedException e) {<br />// TODO Auto-generated catch block<br />e.printStackTrace();<br />flag=0;<br />}<br />return flag;<br />}<br /><br /><br /><br />}}<br /><br />Regards,<br />VinayAnonymoushttps://www.blogger.com/profile/05260568677719445621noreply@blogger.comtag:blogger.com,1999:blog-8053515261740493219.post-81597400475820012142014-05-26T02:13:54.219-07:002014-05-26T02:13:54.219-07:00Please download Jacob jar file, this library conta...Please download Jacob jar file, this library contains the required classes. This part is described in main page. The download link is provided in there.<br /><br />#ATAutomation Testerhttps://www.blogger.com/profile/15092944995388094312noreply@blogger.comtag:blogger.com,1999:blog-8053515261740493219.post-23928855833371940452014-05-26T02:03:08.800-07:002014-05-26T02:03:08.800-07:00Hi,
How to add dll in netbeans? I never added DLLs...Hi,<br />How to add dll in netbeans? I never added DLLs so new to this. Tried following code:<br /> System.setProperty("jacob.dll.path", "D:\\jacob-1.17-M2-x64.dll");<br /><br />LibraryLoader.loadJacobLibrary(); <br /><br />LibraryLoader class does not exits. Which package to be imported?<br /> How to use command line arguments in java?http://java2carrer.blogspot.in/2014/05/how-to-use-command-line-arguments-in.htmlnoreply@blogger.comtag:blogger.com,1999:blog-8053515261740493219.post-59677501536372578802014-05-21T12:02:04.167-07:002014-05-21T12:02:04.167-07:00use : jacob-version-x64.dll
#ATuse : jacob-version-x64.dll<br /><br />#ATAutomation Testerhttps://www.blogger.com/profile/15092944995388094312noreply@blogger.comtag:blogger.com,1999:blog-8053515261740493219.post-53261117089979678762014-05-21T02:38:00.369-07:002014-05-21T02:38:00.369-07:00Hi,
I am getting the exception "Can't loa...Hi,<br />I am getting the exception "Can't load IA 32-bit .dll on a AMD 64-bit platform", what could be the problem ?Karunahttps://www.blogger.com/profile/03089607999097615692noreply@blogger.com