Hi,
I am trying to automate the Oracle Flexcube application using selenium webdriver (on eclipse IDE). The application is installed on the local server in the office Intranet. Is it possible to automate this? I actually tried to automate and face different issue with different browsers. 1. With IE, it gets struck while launching the login page (IE stops progressing, and white screen is shown), and throws javaw.exe exception. When i click close/debug on the exception dialog box, it will proceed with launching the login page, but the execution stops without reporting any errors or pass/fail status (i'm using TestNG plugin). 2. With firefox, it opens up the login page, but the script will not proceed further, nor it will stop execution untill i manually terminate it. Am i missing something here or is it that i can use selenium on such environment? If the answer to latter is yes, do i have any alternate option? I've tried all possiblities to overcome javaw.exe exception. But with no luck. |
Administrator
|
Which version of WebDriver are you using?
Where do you see exception - " javaw.exe", Could you post entire stack trace?
~ seleniumtests.com
|
The application while launching shows IE Certificate Error. Hence i've the following code to navigate throw that page -
driver.navigate().to("javascript:document.getElementById('overridelink').click()"); then i ask it to wait till the webpage loads driver.manage().timeouts().implicitlyWait(60, TimeUnit.SECONDS); The application then opens up in a fresh window in maximized mode, closing the previous one. Now it throws javaw.exe exception in following line of code driver.findElement(By.xpath("//INPUT[@id='USERID']")).sendKeys("vishwas"); I'm using version 2.19.0 The stack trace is not getting recorded in console. Nor the test result is displayed. Only thing that gets printed in console is the System.out.println things which i've put in some places to help me debug. Even though the application opens up in a fresh window after its navigated from certification error page, the window title and id remains same, which i check thru these System.out.println. |
Administrator
|
The problem I see is that you main IE window is closed and a new window is opened and I suppose you don't have any mechanism to bring driver control to new IE window.
Is not it possible for you to avoid certification error, so you could continue with main window it self?
~ seleniumtests.com
|
I tried installing the certificate to over come the problem. But since its hosted locally, they have not taken care on this certificate part, due to which the installation is not effective. It still keeps landing in that page when launched. I had even tried to disable certificate validation option in IE. But that caused more trouble.
According to me, the problem is that this application is highly secured web app - since its a core banking solution. The connection details of which are as below: tls 1.0 rc4 with 128 bit encryption (high) rsa with 1024 bit exchange. This high encryption is disabling the webdriver from interacting with the application i guess, since this is nothing but a javascript. So, is there any workaround for this? |
also wanted to add one more info here. To locate the xpath in firefox, i tried using firebug. To my suprise, the browser window in which i launch this application, never gives the firebug option under the Tools menu!
Not just that, if i open the firebug in independent window (by launching it throw another browser window), and try to use it on this app window, it closes! The only way i was able to get the xpaths was by using bookmarklets in IE. |
Administrator
|
About IE security certificates, could you try options described here -
http://stackoverflow.com/questions/7710619/selenium-2-webdriver-and-ie-9-security-certificate About Firebug, Can you open firebug with Firefox when you open some other websites like Google. Shortcut to open firebug is to use Key - F12 You can also try Chrome which comes with firebug kind of tool and you can test your xpath and css locators using - $x and $$ functions.
~ seleniumtests.com
|
In reply to this post by Vishwas
I went thru the source code. THe problem is that, webdriver is failing to locate elements since their HTML 'style' property is set to 'display:None' which is making it visible yet hidden.
Any option to overcome this problem? |
Administrator
|
Well, you need expose application internal so that Selenium could exercise them. And in fact it is true for any tool you use.
Is there any specific reason behind using "display:None"? I am not aware of this but I suppose it hides the html elements, right? and Eventually Selenium can not exercise it.
~ seleniumtests.com
|
Free forum by Nabble | Edit this page |