In the run it’s not typing the password what we have entered in the record mode please explain?

I have started record and entered the url, it has taken username and password and done some work. Now when I click on run the testcase with the password filed it’s not entering any text.

Thanks for the reply, but still the cursor is not going down to password field, it’s just typing the username and stopping there only, please update

Here is a workaround solution. I use javascript to ‘type’ in password field.

import static com.kms.katalon.core.testobject.ObjectRepository.findTestObject

import org.openqa.selenium.JavascriptExecutor
import org.openqa.selenium.WebDriver

import com.kms.katalon.core.webui.driver.DriverFactory
import com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords as WebUI

WebUI.openBrowser('')

WebUI.navigateToUrl('https://sales.buzzboard.com/signin/')

WebUI.setText(findTestObject('Page_Sign In BuzzBoard/input_username'), 'qasalesrep1')

WebDriver driver = DriverFactory.getWebDriver()

String jScript = 'document.getElementById("text_password").value="yourpassword";'
JavascriptExecutor executor = (JavascriptExecutor)driver
executor.executeScript(jScript)

Well, because your password field is very special, this is the only solution I can come up with.

Hi there,

Please censor your password here, don’t show it in public place. Just add some random user and password to showcase your scenario

Well, your password field is designed in a special way. It has two layers of input tag, and the ‘real’ input tag for typing is only revealed when you focus on it. Therefore, Katalon Studio script can’t input password using normal way.

I’ll investigate on it more and provide you with the solution to handle this special password field.

Thanks

import static com.kms.katalon.core.checkpoint.CheckpointFactory.findCheckpoint
import static com.kms.katalon.core.testcase.TestCaseFactory.findTestCase
import static com.kms.katalon.core.testdata.TestDataFactory.findTestData
import static com.kms.katalon.core.testobject.ObjectRepository.findTestObject
import com.kms.katalon.core.checkpoint.Checkpoint as Checkpoint
import com.kms.katalon.core.checkpoint.CheckpointFactory as CheckpointFactory
import com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords as MobileBuiltInKeywords
import com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords as Mobile
import com.kms.katalon.core.model.FailureHandling as FailureHandling
import com.kms.katalon.core.testcase.TestCase as TestCase
import com.kms.katalon.core.testcase.TestCaseFactory as TestCaseFactory
import com.kms.katalon.core.testdata.TestData as TestData
import com.kms.katalon.core.testdata.TestDataFactory as TestDataFactory
import com.kms.katalon.core.testobject.ObjectRepository as ObjectRepository
import com.kms.katalon.core.testobject.TestObject as TestObject
import com.kms.katalon.core.webservice.keyword.WSBuiltInKeywords as WSBuiltInKeywords
import com.kms.katalon.core.webservice.keyword.WSBuiltInKeywords as WS
import com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords as WebUiBuiltInKeywords
import com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords as WebUI
import internal.GlobalVariable as GlobalVariable

WebUI.openBrowser(’’)

WebUI.navigateToUrl(‘https://sales.buzzboard.com/signin/’)

WebUI.setText(findTestObject(‘ramswork/Page_Sign In BuzzBoard/input_username’), ‘qasalesrep1’)

WebUI.setText(findTestObject(‘ramswork/Page_Sign In BuzzBoard/input_password’), ‘qasales’)

WebUI.click(findTestObject(‘ramswork/Page_Sign In BuzzBoard/input_login’))

WebUI.click(findTestObject(‘ramswork/Page_Insights Esca Restaurant Buz/span_iconsec’))

WebUI.click(findTestObject(‘ramswork/Page_Insights Esca Restaurant Buz/a_Find Prospects’))

WebUI.click(findTestObject(‘ramswork/Page_Find Prospects BuzzBoard/div_Location’))
WebUI.closeBrowser()

Hi there,

Can you show me your test script?

Thanks

Add this line to the script, Just before the element that shows the error.

WebUI.delay(3)