Only Internet Explorer can't find the button

47 views
Skip to first unread message

Lanier Hall

unread,
Dec 30, 2014, 12:42:45 PM12/30/14
to co...@googlegroups.com
Only in internet explorer when executing browser.ClickButton("Add")

When trying to find this button: 
<button class="add-modal-button btn btn-sm btn-primary pull-right" type="button" data-bind="click: addMappedSystem">Add</button>

I get this error:
SetUp : OpenQA.Selenium.InvalidSelectorException : The xpath expression './/*[(((name() = "input") and (@type = "button" or @type = "submit" or @type = "image" or @type = "reset")) or (name() = "button") or (contains(@class,' button') or contains(@class,'button ') or contains(@class,' button ') or contains(@class,' btn') or contains(@class,'btn ') or contains(@class,' btn ')) or @role = "button" ) and ((@id = "Add"  or @name = "Add" ) or (@value = "Add"  or @alt = "Add"  or normalize-space() = "Add" ))]' cannot be evaluated or does notresult in a WebElement

any thoughts?

Adrian Longley

unread,
Jan 5, 2015, 4:37:24 AM1/5/15
to co...@googlegroups.com
I guess there's something in this expression the ie driver doesn't like. Would need some investigation trying variations on this expression in ie to see what the problem is.

Please can you add a github issue for this. If you have time do any investigation yourself you could post it on there and that might help speed up a fix.

Cheers
--
You received this message because you are subscribed to the Google Groups "Coypu" group.
To unsubscribe from this group and stop receiving emails from it, send an email to coypu+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages