userMenuButton (required: false) { $("span", id:"hybris-customer").$("comp-svg").find("use")
--
You received this message because you are subscribed to the Google Groups "Geb User Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to geb-user+unsubscribe@googlegroups.com.
To post to this group, send email to geb-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/geb-user/7ba1c922-7692-49af-ad1a-5e3f5c6e542c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
def menuButton = $("span", id:"hybris-customer")
menuButton.click()
interact { click menuButton}
menuButton << Keys.ENTER
Hi,Does your selector even work? Is it returning a non-empty navigator or is it returning an empty one and that's why you have "required: false" in your content definition? What does "I do not have any success" mean? Are you getting an error or does nothing happen?Marcin
On Mon, Jun 19, 2017 at 3:17 PM, <medv...@gmail.com> wrote:
hi,could anyone please help me?I need to click this button<span style="padding: 0px 10px;" id="abc-customer"><comp-svg params="{ name: 'user' }" class="neo-icon neo-icon--sm neo-icon--white"><svg data-bind="css: setClasses()" class="svg svg--user svg--color-undefined"><use xlink:href="https://test.abc.com/.resources/abc-ui/webresources/assets/svg/sprite.svg#user" data-bind="attr: { 'xlink:href': getSpriteUrl() }"/></svg></comp-svg>but I do not have any success, tried e.g.userMenuButton (required: false) { $("span", id:"hybris-customer").$("comp-svg").find("use")using << Keys.ENTER, it does not work.any idea?thanks in advance!
--
You received this message because you are subscribed to the Google Groups "Geb User Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to geb-user+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/geb-user/f10b5bd9-f642-4128-b036-086a147aa343%40googlegroups.com.
userMenuButton (required: false) { $("span", id:"hybris-customer") }
assert(masterModule.userMenuButton.displayed)masterModule.userMenuButton.click
To view this discussion on the web visit https://groups.google.com/d/msgid/geb-user/d551a5a9-53cb-4265-afe3-daf4ae3edb7b%40googlegroups.com.