Selenium Webdriver click() not doing anything

MorkPork

Should be simple enough, I have the following code: -

DesiredCapabilities capabilities = new DesiredCapabilities();
DesiredCapabilities.internetExplorer();
capabilities.setCapability("nativeEvents",false);

WebDriver driver = new RemoteWebDriver(new URL("http://localhost:4444/wd/hub"),capabilities);

// And now use it
driver.get("dvfow01.mySite.com");
Thread.sleep(5000);

driver.findElement(By.linkText("Create")).click();
System.out.println("test");
driver.findElement(By.id("CreateDeal")).click();

It clicks the first item (linkText of "Create") but never gets to the next line in the sequence. The moment I close the browser it hits the next line, printing out the text "test" and then obviously immediately crashes due to no element on closed window.

Any suggestions? I'm running all the latest versions...

The clicking of this link expands a hidden section via tagit.js so it looks like a drop down but isn't... the html of the page looks like so...

  <li class="dropdown"><a href='#' class='collermenu dropdown-toggle' data-toggle='dropdown'>Create <b class='caret'></b></a>
        <ul class="dropdown-menu">
            <li><a id="createDeal">Deal</a></li>
            <li><a id="second">someting</a></li>
            <li><a id="third">something else</a></li>
            <li><a id="fourth">a fourth</a></li>
            <li><a id="fifth">the last</a></li>
        </ul>
    </li>

I've spoken with my devs and they tell me that they are running something called signalr with foreverframe to continually comminucate back to the server for updates/popups etc?

Anyone heard of this or used it in conjunction with selenium?

MorkPork

The only solution I could come up with for this was to change the method by which the devs utilised signalR in our dev environment. They were using foreverframe but this just doesn't play ball with selenium, so instead I had to get them to change back to long polling. Not ideal to have different configurations in dev vs live but it gets round the issue...

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Java

Python selenium webdriver click() does not work properly

From Dev

Selenium webdriver click google search

From Dev

Click a Link working in Selenium Ide but not working in Webdriver

From Dev

Selenium WebDriver - Java - Click a button

From Dev

Hover and click on hidden elements with Selenium WebDriver

From Dev

clicking next button on reddit with selenium not doing anything

From Dev

Unable to click() or submit() input using Selenium Webdriver

From Dev

How to Click a Link in Selenium Webdriver

From Dev

How to click on hidden element in Selenium WebDriver?

From Dev

Unable to click link using selenium webdriver

From Dev

How to double click on an element using Selenium Webdriver

From Dev

Selenium WebDriver - Xpath (or anything) to locate cell next to cell in table?

From Dev

Click a checkbox with selenium-webdriver

From Dev

Click on a table link in selenium webdriver

From Dev

Button click in selenium webdriver - java

From Dev

Selenium WebDriver Second click not working

From Dev

Click to confirm a Modal Dialog with Selenium WebDriver

From Dev

How to click on an image in selenium webdriver

From Dev

How to click a link in a hover menu with Selenium webdriver?

From Dev

Click OK on alert Selenium Webdriver

From Dev

Selenium WebDriver throws WebDriverTimeoutException on RemoteWebElement.Click()

From Dev

Unable to click on element - Selenium WebDriver

From Dev

Button click in selenium webdriver - java

From Dev

Selenium WebDriver Second click not working

From Dev

Click OK on alert Selenium Webdriver

From Dev

Button not doing anything on click. How come?

From Dev

python selenium webdriver click() not working

From Dev

Selenium webdriver click alert

From Dev

Selenium webdriver wait element and click

Related Related

  1. 1

    Python selenium webdriver click() does not work properly

  2. 2

    Selenium webdriver click google search

  3. 3

    Click a Link working in Selenium Ide but not working in Webdriver

  4. 4

    Selenium WebDriver - Java - Click a button

  5. 5

    Hover and click on hidden elements with Selenium WebDriver

  6. 6

    clicking next button on reddit with selenium not doing anything

  7. 7

    Unable to click() or submit() input using Selenium Webdriver

  8. 8

    How to Click a Link in Selenium Webdriver

  9. 9

    How to click on hidden element in Selenium WebDriver?

  10. 10

    Unable to click link using selenium webdriver

  11. 11

    How to double click on an element using Selenium Webdriver

  12. 12

    Selenium WebDriver - Xpath (or anything) to locate cell next to cell in table?

  13. 13

    Click a checkbox with selenium-webdriver

  14. 14

    Click on a table link in selenium webdriver

  15. 15

    Button click in selenium webdriver - java

  16. 16

    Selenium WebDriver Second click not working

  17. 17

    Click to confirm a Modal Dialog with Selenium WebDriver

  18. 18

    How to click on an image in selenium webdriver

  19. 19

    How to click a link in a hover menu with Selenium webdriver?

  20. 20

    Click OK on alert Selenium Webdriver

  21. 21

    Selenium WebDriver throws WebDriverTimeoutException on RemoteWebElement.Click()

  22. 22

    Unable to click on element - Selenium WebDriver

  23. 23

    Button click in selenium webdriver - java

  24. 24

    Selenium WebDriver Second click not working

  25. 25

    Click OK on alert Selenium Webdriver

  26. 26

    Button not doing anything on click. How come?

  27. 27

    python selenium webdriver click() not working

  28. 28

    Selenium webdriver click alert

  29. 29

    Selenium webdriver wait element and click

HotTag

Archive