I checked the existing answers and it looks like there is no answered question regarding this.
Here it is: selenium 32 bit driver, IE 11, windows 10 64bit.
I need to find the elements with the unique static id = 0idMenuTitle
or 1idMenuTitle
HTML code
SPAN onmouseover="if(this.style.backgroundColor !=BgColorON)this.style.backgroundColor = BgColorOVER;" onmouseout="if(this.style.backgroundColor !=BgColorON)this.style.backgroundColor = BgColorOFF;" id=1idMenuTitle class=clsMenuTitle style="MAX-WIDTH: none; MIN-WIDTH: auto; MIN-HEIGHT: auto; MAX-HEIGHT: none; BACKGROUND-COLOR: #cccc" minmax_bound="true" width="100%">menu1
I'm using the following:
driver.findElement(By.id("0idMenuTitle")).click();
and have the error
org.openqa.selenium.NoSuchElementException: Unable to find element with css selector == #\31 idMenuTitle
I'm trying to find with the partial id
driver.findElement(By.cssSelector("[id*=MenuTitle]")).click();
but got
org.openqa.selenium.ElementNotInteractableException: Element is not displayed
I tried with Xpath as well, the same errors. There is no issue if I'm using FF or GC but I must use IE11, no choice. There is no problem to find the elements with id that does not start with numbers...
Any idea please?
Update
I'm trying to find the element by id starting with 0, but selenium shows the error regarding css selector (?) and the id #\31 (???)