Selenium / JUnit - Authentication screen is not written / executed

1

I'm doing a POC to use Selenium + JUnit 4 for functional interface testing on a web tool. The tool in question requires authentication when the URL is opened, and the test has been written to Selenium IDE / Firefox with all steps including completing this authentication.

When I export the test file to java, when I run JUnit Firefox opens, but the test does not leave the login screen, and even if I record this case in Selenium starting from the home page of the web tool , in the test run in eclipse authentication will always be requested as if the page was being opened from scratch.

I tried to use WebElement with sendKeys, however, it is not possible to open the Firefox console in this authentication screen to collect the user / password element identification, which I believe to be Javascript.

Authentication screen is this:

Ihavetriedthefollowingconceptsassolutions,withnosuccess:

I have already modified the setUp() method of @Before with all the possibilities that came to mind but the test does not develop beyond this screen, even if it runs directly in Selenium IDE / Firefox.

Any ideas? = (

Update: I was able to have the User and Password data loaded automatically by loading a profile into the code with this data already saved, but I was not able to click OK or robot or " driver.get (" link "); ". I was able to perform this action using AutoIt to record the movement of the mouse, and calling the .exe in the code, but I found the solution a bit strange, is there a better way to perform this action by pressing "OK" without using this tool? / p>     

asked by anonymous 26.01.2015 / 19:13

0 answers