Katalon Analytics (beta) – Bringing new insights into test reports. Learn more!

Drop down box trouble

Hi, I am testing a website that has a lot of drop down boxes. It records fine, but when I try and play it back Katalon can not access the drop down boxes, can someone help me with this?

Comments

  • Hi there,

    Playback usually doesn't work properly and it is the nature of using recording due to test object is being changed dynamically or you have to wait for the element to be visible. Can you post for me the error message displayed?

     
  • Hello,

    I've got quite the same issue, not an error but the execution can't go on because the list of values is dynamic (postal addresses). For some websites it works by inserting a key action "Tab" in the script but for some other object types only the mouse action works so it can't be managed in the test case. Is it possible to choose always the 1st item of a value list ? If so could you please tell which action to call ? (please consider I do not have any dev skills)

    Many thanks
  • I have found a workaround. I consider I always have to select the first item of the dynamic list and it works: the script can continue !!!

    To do that, you just have to change the detection method of the targeted item: check the data-index way.

    Hope this helps
  • Unable to click on object 'Object Repository/Page_Risk Management Operations  Fi (3)/strong_Markets' (Root cause: com.kms.katalon.core.webui.exception.WebElementNotFoundException: Web element with id: 'Object Repository/Page_Risk Management Operations  Fi (3)/strong_Markets' located by 'By.xpath: //strong[count(. | id("sticky-nav")/div[@class="container"]/ul[@class="global-nav-inline"]/li[@class="menu item-hover"]/a[@class="menu-toggle text-upper"]/strong[1]) = count(id("sticky-nav")/div[@class="container"]/ul[@class="global-nav-inline"]/li[@class="menu item-hover"]/a[@class="menu-toggle text-upper"]/strong[1])]' not found)
  • If the drop down object id are coming dynamic, then the tool cannot find the object. So try to find the Object which is unique and will not change dynamic. And the content of the drop down you can use the option like selectoptionbyindex it starts with 0 like 0-first element,1 second element in the drop down and so on.....Hope it will help you
Sign In or Register to comment.