I must write some scripts for automatic tests to check load-time a web application built in flex/amf technology.
The test will consist in opening the IE browser, going through several tabs and measuring the time from clicking on the last tab to load the page content and then closing the browser.

I wrote in java a small script with Selenium Web Driver and Junit. Script opening the IE-window, enter login and password. I have problem with 'click on' login-button.

Firstly I have try to find and click button by findingElement and By.partiallinktext, but selenium informed me: "Unable to find element with partial link text" (ctrl+f works fine on that site).

I tried clicking using moveByOffset mouse and by pressing buttons (class Robot - 'tab' and 'enter' after fill string with password). All of them doesn't work.

Next I found JavascriptExecutor - I thing, that it could be answer for my problem, but how I should use this class?

Button on that site:

```
<button style="width: 120px;" onclick="javascript:logIn();"> Login </button>

```

My java code:

```
WebElement button = driver.findElement(By.partialLinkText("Login")); 
JavascriptExecutor js = (JavascriptExecutor) driver;
js.executeScript ("document.getElementByText(\"Login\")).click();", button); 

```

I haven't a lot of experience with tests, so I will be grateful for your help.