I will try to be as clear as possible. Lets take an identical test case in both browsers. Open a page and find an element by the following method:
wait.until(ExpectedConditions.elementToBeClickable(By.linkText("Logout"))).click();
Absolutely identical cases and it works fine in Chrome but in Firefox it doesn't find the element. I'm using:
Selenium 3.4
GeckoDriver 0.16
Firefox 53.0
P.S After sometime i found out that the only difference is that thous elements that are located in and which i want to find by text aren't reachable. Even though it works perfectly with Chrome. Is there any way to deal with this or i have to make a totally new class and take another approach?