Unable to click on element which ends with ellipses

Hi,

I am unable to click on element which ends with ellipses.Can anybody help me in this?
Eg: “cobalt/chrome/chromique/ammonium/cui…”

We had a problem locating such an element. The ellipses can be represented as its own ascii character. I’ll admit that we just obtained this character, presented here “…” and used it another character in the string.

Now, your problem may be that you can locate the element but not click on it, in which case I don’t understand the failure and would need more information to debug the problem.

@willosser
Hey thanks for reply .
I am sharing you the logs .If you know the best solution please help me

info: [debug] Pushing command to appium work queue: [“find”,{“strategy”:“name”,“selector”:“chrome/ammonium/chromique/cobalt/cuiv…”,“context”:"",“multiple”:false}]

info: [debug] [BOOTSTRAP] [debug] Got data from client: {“cmd”:“action”,“action”:“find”,“params”:{“strategy”:“name”,“selector”:“chrome/ammonium/chromique/cobalt/cuiv…”,“context”:"",“multiple”:false}}
info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION
info: [debug] [BOOTSTRAP] [debug] Got command action: find
info: [debug] [BOOTSTRAP] [debug] Finding chrome/ammonium/chromique/cobalt/cuiv… using NAME with the contextId: multiple: false
info: [debug] [BOOTSTRAP] [debug] Using: UiSelector[DESCRIPTION=chrome/ammonium/chromique/cobalt/cuiv…, INSTANCE=0]
info: [debug] [BOOTSTRAP] [debug] Using: UiSelector[TEXT=chrome/ammonium/chromique/cobalt/cuiv…, INSTANCE=0]
info: [debug] [BOOTSTRAP] [debug] Failed to locate element. Clearing Accessibility cache and retrying.
info: [debug] [BOOTSTRAP] [debug] Finding chrome/ammonium/chromique/cobalt/cuiv… using NAME with the contextId: multiple: false
info: [debug] [BOOTSTRAP] [debug] Using: UiSelector[DESCRIPTION=chrome/ammonium/chromique/cobalt/cuiv…, INSTANCE=0]

info: [debug] [BOOTSTRAP] [debug] Using: UiSelector[TEXT=chrome/ammonium/chromique/cobalt/cuiv…, INSTANCE=0]
info: [debug] [BOOTSTRAP] [debug] Returning result: {“status”:7,“value”:“No element found”}
info: [debug] Waited for 44355ms so far

info: [debug] Pushing command to appium work queue: [“find”,{“strategy”:“name”,“selector”:“chrome/ammonium/chromique/cobalt/cuiv…”,“context”:"",“multiple”:false}]
info: [debug] [BOOTSTRAP] [debug] Got data from client: {“cmd”:“action”,“action”:“find”,“params”:{“strategy”:“name”,“selector”:“chrome/ammonium/chromique/cobalt/cuiv…”,“context”:"",“multiple”:false}}
info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION
info: [debug] [BOOTSTRAP] [debug] Got command action: find
info: [debug] [BOOTSTRAP] [debug] Finding chrome/ammonium/chromique/cobalt/cuiv… using NAME with the contextId: multiple: false
info: [debug] [BOOTSTRAP] [debug] Using: UiSelector[DESCRIPTION=chrome/ammonium/chromique/cobalt/cuiv…, INSTANCE=0]

info: [debug] [BOOTSTRAP] [debug] Using: UiSelector[TEXT=chrome/ammonium/chromique/cobalt/cuiv…, INSTANCE=0]
info: [debug] [BOOTSTRAP] [debug] Failed to locate element. Clearing Accessibility cache and retrying.
info: [debug] [BOOTSTRAP] [debug] Finding chrome/ammonium/chromique/cobalt/cuiv… using NAME with the contextId: multiple: false
info: [debug] [BOOTSTRAP] [debug] Using: UiSelector[DESCRIPTION=chrome/ammonium/chromique/cobalt/cuiv…, INSTANCE=0]
info: [debug] [BOOTSTRAP] [debug] Using: UiSelector[TEXT=chrome/ammonium/chromique/cobalt/cuiv…, INSTANCE=0]
info: [debug] [BOOTSTRAP] [debug] Returning result: {“status”:7,“value”:“No element found”}
info: [debug] Waited for 45050ms so far

info: [debug] Pushing command to appium work queue: [“find”,{“strategy”:“name”,“selector”:“chrome/ammonium/chromique/cobalt/cuiv…”,“context”:"",“multiple”:false}]

info: [debug] [BOOTSTRAP] [debug] Got data from client: {“cmd”:“action”,“action”:“find”,“params”:{“strategy”:“name”,“selector”:“chrome/ammonium/chromique/cobalt/cuiv…”,“context”:"",“multiple”:false}}
info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION
info: [debug] [BOOTSTRAP] [debug] Got command action: find
info: [debug] [BOOTSTRAP] [debug] Finding chrome/ammonium/chromique/cobalt/cuiv… using NAME with the contextId: multiple: false
info: [debug] [BOOTSTRAP] [debug] Using: UiSelector[DESCRIPTION=chrome/ammonium/chromique/cobalt/cuiv…, INSTANCE=0]
info: [debug] [BOOTSTRAP] [debug] Using: UiSelector[TEXT=chrome/ammonium/chromique/cobalt/cuiv…, INSTANCE=0]
info: [debug] [BOOTSTRAP] [debug] Failed to locate element. Clearing Accessibility cache and retrying.
info: [debug] [BOOTSTRAP] [debug] Finding chrome/ammonium/chromique/cobalt/cuiv… using NAME with the contextId: multiple: false
info: [debug] [BOOTSTRAP] [debug] Using: UiSelector[DESCRIPTION=chrome/ammonium/chromique/cobalt/cuiv…, INSTANCE=0]
info: [debug] [BOOTSTRAP] [debug] Using: UiSelector[TEXT=chrome/ammonium/chromique/cobalt/cuiv…, INSTANCE=0]
info: [debug] [BOOTSTRAP] [debug] Returning result: {“status”:7,“value”:“No element found”}
info: [debug] Waited for 45758ms so far

info: [debug] Pushing command to appium work queue: [“find”,{“strategy”:“name”,“selector”:“chrome/ammonium/chromique/cobalt/cuiv…”,“context”:"",“multiple”:false}]

info: [debug] [BOOTSTRAP] [debug] Got data from client: {“cmd”:“action”,“action”:“find”,“params”:{“strategy”:“name”,“selector”:“chrome/ammonium/chromique/cobalt/cuiv…”,“context”:"",“multiple”:false}}
info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION
info: [debug] [BOOTSTRAP] [debug] Got command action: find
info: [debug] [BOOTSTRAP] [debug] Finding chrome/ammonium/chromique/cobalt/cuiv… using NAME with the contextId: multiple: false
info: [debug] [BOOTSTRAP] [debug] Using: UiSelector[DESCRIPTION=chrome/ammonium/chromique/cobalt/cuiv…, INSTANCE=0]
info: [debug] [BOOTSTRAP] [debug] Using: UiSelector[TEXT=chrome/ammonium/chromique/cobalt/cuiv…, INSTANCE=0]
info: [debug] [BOOTSTRAP] [debug] Failed to locate element. Clearing Accessibility cache and retrying.
info: [debug] [BOOTSTRAP] [debug] Finding chrome/ammonium/chromique/cobalt/cuiv… using NAME with the contextId: multiple: false
info: [debug] [BOOTSTRAP] [debug] Using: UiSelector[DESCRIPTION=chrome/ammonium/chromique/cobalt/cuiv…, INSTANCE=0]

info: [debug] [BOOTSTRAP] [debug] Using: UiSelector[TEXT=chrome/ammonium/chromique/cobalt/cuiv…, INSTANCE=0]
info: [debug] [BOOTSTRAP] [debug] Returning result: {“status”:7,“value”:“No element found”}
info: [debug] Waited for 46509ms so far

info: [debug] Pushing command to appium work queue: [“find”,{“strategy”:“name”,“selector”:“chrome/ammonium/chromique/cobalt/cuiv…”,“context”:"",“multiple”:false}]

info: [debug] [BOOTSTRAP] [debug] Got data from client: {“cmd”:“action”,“action”:“find”,“params”:{“strategy”:“name”,“selector”:“chrome/ammonium/chromique/cobalt/cuiv…”,“context”:"",“multiple”:false}}
info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION
info: [debug] [BOOTSTRAP] [debug] Got command action: find
info: [debug] [BOOTSTRAP] [debug] Finding chrome/ammonium/chromique/cobalt/cuiv… using NAME with the contextId: multiple: false
info: [debug] [BOOTSTRAP] [debug] Using: UiSelector[DESCRIPTION=chrome/ammonium/chromique/cobalt/cuiv…, INSTANCE=0]
info: [debug] [BOOTSTRAP] [debug] Using: UiSelector[TEXT=chrome/ammonium/chromique/cobalt/cuiv…, INSTANCE=0]
info: [debug] [BOOTSTRAP] [debug] Failed to locate element. Clearing Accessibility cache and retrying.
info: [debug] [BOOTSTRAP] [debug] Finding chrome/ammonium/chromique/cobalt/cuiv… using NAME with the contextId: multiple: false
info: [debug] [BOOTSTRAP] [debug] Using: UiSelector[DESCRIPTION=chrome/ammonium/chromique/cobalt/cuiv…, INSTANCE=0]
info: [debug] [BOOTSTRAP] [debug] Using: UiSelector[TEXT=chrome/ammonium/chromique/cobalt/cuiv…, INSTANCE=0]
info: [debug] [BOOTSTRAP] [debug] Returning result: {“status”:7,“value”:“No element found”}
info: [debug] Waited for 47157ms so far

info: [debug] Pushing command to appium work queue: [“find”,{“strategy”:“name”,“selector”:“chrome/ammonium/chromique/cobalt/cuiv…”,“context”:"",“multiple”:false}]

info: [debug] [BOOTSTRAP] [debug] Got data from client: {“cmd”:“action”,“action”:“find”,“params”:{“strategy”:“name”,“selector”:“chrome/ammonium/chromique/cobalt/cuiv…”,“context”:"",“multiple”:false}}
info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION
info: [debug] [BOOTSTRAP] [debug] Got command action: find
info: [debug] [BOOTSTRAP] [debug] Finding chrome/ammonium/chromique/cobalt/cuiv… using NAME with the contextId: multiple: false
info: [debug] [BOOTSTRAP] [debug] Using: UiSelector[DESCRIPTION=chrome/ammonium/chromique/cobalt/cuiv…, INSTANCE=0]
info: [debug] [BOOTSTRAP] [debug] Using: UiSelector[TEXT=chrome/ammonium/chromique/cobalt/cuiv…, INSTANCE=0]
info: [debug] [BOOTSTRAP] [debug] Failed to locate element. Clearing Accessibility cache and retrying.
info: [debug] [BOOTSTRAP] [debug] Finding chrome/ammonium/chromique/cobalt/cuiv… using NAME with the contextId: multiple: false
info: [debug] [BOOTSTRAP] [debug] Using: UiSelector[DESCRIPTION=chrome/ammonium/chromique/cobalt/cuiv…, INSTANCE=0]
info: [debug] [BOOTSTRAP] [debug] Using: UiSelector[TEXT=chrome/ammonium/chromique/cobalt/cuiv…, INSTANCE=0]
info: [debug] [BOOTSTRAP] [debug] Returning result: {“status”:7,“value”:“No element found”}
info: [debug] Waited for 47735ms so far

@willosser

I am trying this french topic also “10 g poudre p sol buvable entéral(e)” .This topic contains specials characters.
Its not able to find this element too .It is finding like this “10 g poudre p sol buvable entéral(e)”

Thanks in advance

You’re dealing with unicode characters. You can see of of the discussion on this here: http://sauceio.com/index.php/2014/03/non-ascii-characters-in-appium-part-1/

I believe we solved this problem by monkey patching (Ruby) Selenium with the code below.

require ‘unicode_utils’
module Selenium
module WebDriver
class Element
def text
UnicodeUtils.nfc bridge.getElementText @id
end
end

class Alert

  def text
    UnicodeUtils.nfc @bridge.getAlertText
  end
end

end
end

1 Like