How to select a value for a dropdown field that reloads the entire page

I used the sendKeys option and it works but for some reason after the selection it scrolls down to the bottom of the page. Why is that happening?

Generally for dropdown menu’s I revert to a little bit of Selenium

something like:

List listElements = WebUICommonHelper.findWebElements(TestObject-Dropdown)

Where the test object defines the Dropdown menu elements using some xpath or other attributes.

Select option from dropdown list
WebElement docSelect = listElements.get(i)
docSelect.click()

import com.kms.katalon.core.webui.common.WebUiCommonHelper as WebUiCommonHelper
import org.openqa.selenium.WebDriver as WebDriver
import org.openqa.selenium.WebElement as WebElement

In the case of the page reloading, you can just add a WebUI.waitforpageload() function in there.

looking at your choice of statement, I would probably choose another. Instead of using:
WebUI.selectOptionByValue(findTestObject(‘BRONTO_ALL/select_Select a Sub-Account52’), ‘Financial Media Corp (finmc)’, true)

perhaps you should use:
WebUI.selectOptionByLabel(findTestObject(‘BRONTO_ALL/select_Select a Sub-Account52’), ‘Financial Media Corp (finmc)’, false)

  1. use Label instead of Value since you’re using a label (a string), not an actual value (a number).
  2. use false instead of true since I don’t see any regular expression syntax, like w, W, d, D or \ or .*, in your statement…