java - Selenium click() no longer functioning (w/ Eclipse/Maven/Firefox) -


i started working on selenium tests yesterday. use eclipse run maven builds in java test on firefox. morning, tests running fine. went out lunch , click() function no longer works on computer.

the way it's used this:

driver.findelement(by.xpath(".....")).click() 

from can see, selenium still works. sendkeys function still automatically fills in fields, no clicking occurs. manually clicking buttons , boxes still works.

i thought had accidentally changed something, deleted tests , recloned whole project, still not functioning on computer. tests work fine on mentor's computer. we're stumped here.

you mentioned selenium test works @ mentors computer...

it's important know webdriver variant using when starting tests. if webdriver using real installed browser instance (e.g. firefox) , machine runs browser version explain situation.

i suggest:

  • first of all: check if got same code base , there no change @ all
  • are using same webdriver version?
  • check webdriver target browser same on both machines
  • also try out htmlunit web driver on both machines
  • when still problems:
    • refactor code, click action in 1 line
    • create debug breakpoint @ click()- location
    • call selenium tests in debug mode (on both machines) "real browser webdriver" - e.g. firefox". "click" manually.
    • if it's still no react on click there wrong browser

Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -