Hi all
we are facing an issue on one of our computer.
using IDE, click button works, but when i record and try to click on login button using katalon studio, nothing is happening…
IDE code generated :
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.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.webui.driver.DriverFactory as DriverFactory
import com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords as WebUiBuiltInKeywords
import internal.GlobalVariable as GlobalVariable
import com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords as WebUI
import com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords as Mobile
import com.kms.katalon.core.webservice.keyword.WSBuiltInKeywords as WS
import com.thoughtworks.selenium.Selenium
import org.openqa.selenium.firefox.FirefoxDriver
import org.openqa.selenium.WebDriver
import com.thoughtworks.selenium.webdriven.WebDriverBackedSelenium
import static org.junit.Assert.*
import java.util.regex.Pattern
import static org.apache.commons.lang3.StringUtils.join
WebUI.openBrowser('https://www.google.com/')
def driver = DriverFactory.getWebDriver()
String baseUrl = "https://www.google.com/"
selenium = new WebDriverBackedSelenium(driver, baseUrl)
selenium.type("id=terminal_containerWindow_login_formElementUsername_coreElementContainer_username", "arnaud")
selenium.click("id=terminal_containerWindow_login_formElementPassword_coreElementContainer_password")
selenium.type("id=terminal_containerWindow_login_formElementPassword_coreElementContainer_password", "test")
selenium.click("id=terminal_containerWindow_login_loginButton_label_labelText_0")
Katalon Studio :
WebUI.openBrowser('')
WebUI.navigateToUrl('https://livebuilds.openbravo.com/retail_pi_pgsql/web/org.openbravo.retail.posterminal/?terminal=VBS-1#login')
WebUI.setText(findTestObject('Object Repository/ob_Temp/input_User_terminal_containerWindow_login_f_dd4da6'), 'test')
WebUI.setEncryptedText(findTestObject('Object Repository/ob_Temp/input_Password_terminal_containerWindow_log_eee0a3'), 'P9ET2sDE0SE=')
WebUI.click(findTestObject('Object Repository/ob_Temp/div_Log In'))
WebUI.waitForPageLoad(30)
Log :
2020-03-02 18:31:27.526 INFO c.k.katalon.core.main.TestCaseExecutor - --------------------
2020-03-02 18:31:27.526 INFO c.k.katalon.core.main.TestCaseExecutor - START Test Cases/_openbravo/New Test Case
2020-03-02 18:31:27.714 DEBUG c.k.katalon.core.main.TestCaseExecutor - Evaluating variables for test case
2020-03-02 18:31:27.747 DEBUG c.k.k.core.context.internal.TestHooker - STEP beforeTestcase
2020-03-02 18:31:27.747 DEBUG c.k.k.core.context.internal.TestHooker - Starting invoke 'com.kms.katalon.core.annotation.BeforeTestCase' method: 'TestListener.beforeTestcase(...)'
2020-03-02 18:31:27.747 DEBUG c.k.k.core.context.internal.TestHooker - Invoke 'com.kms.katalon.core.annotation.BeforeTestCase' method: 'TestListener.beforeTestcase(...)' completed.
2020-03-02 18:31:27.747 TRACE c.k.k.core.context.internal.TestHooker - END null: beforeTestcase
2020-03-02 18:31:28.060 DEBUG testcase.New Test Case - 1: openBrowser("")
2020-03-02 18:31:28.419 DEBUG c.k.k.c.w.k.builtin.OpenBrowserKeyword - Opening browser
2020-03-02 18:31:28.431 INFO c.k.k.core.webui.driver.DriverFactory - Starting 'Chrome' driver
mars 02, 2020 6:31:28 PM org.openqa.selenium.remote.DesiredCapabilities chrome
INFOS: Using `new ChromeOptions()` is preferred to `DesiredCapabilities.chrome()`
2020-03-02 18:31:28.484 INFO c.k.k.core.webui.driver.DriverFactory - Action delay is set to 0 seconds
Starting ChromeDriver 80.0.3987.106 (f68069574609230cf9b635cd784cfb1bf81bb53a-refs/branch-heads/3987@{#882}) on port 40717
Only local connections are allowed.
Please protect ports used by ChromeDriver and related test frameworks to prevent access by malicious code.
mars 02, 2020 6:31:31 PM org.openqa.selenium.remote.ProtocolHandshake createSession
INFOS: Detected dialect: W3C
2020-03-02 18:31:31.912 INFO c.k.k.core.webui.driver.DriverFactory - sessionId = 3dc9eca3eec62146832a6aa89bc8c2fc
2020-03-02 18:31:31.927 INFO c.k.k.core.webui.driver.DriverFactory - browser = Chrome 80.0.3987.122
2020-03-02 18:31:31.927 INFO c.k.k.core.webui.driver.DriverFactory - platform = Windows 7
2020-03-02 18:31:31.928 INFO c.k.k.core.webui.driver.DriverFactory - seleniumVersion = 3.141.59
2020-03-02 18:31:31.928 INFO c.k.k.core.webui.driver.DriverFactory - proxyInformation = ProxyInformation{proxyOption=NO_PROXY, proxyServerType=HTTP, password=, proxyServerAddress=, proxyServerPort=0, executionList=}
2020-03-02 18:31:31.934 DEBUG c.k.k.c.w.k.builtin.OpenBrowserKeyword - ✓ Browser is opened with url: ''
2020-03-02 18:31:31.934 DEBUG testcase.New Test Case - 2: navigateToUrl("https://livebuilds.openbravo.com/retail_pi_pgsql/web/org.openbravo.retail.posterminal/?terminal=VBS-1#login")
2020-03-02 18:31:31.960 DEBUG c.k.k.c.w.k.b.NavigateToUrlKeyword - Checking url
2020-03-02 18:31:31.962 DEBUG c.k.k.c.w.k.b.NavigateToUrlKeyword - Navigating to 'https://livebuilds.openbravo.com/retail_pi_pgsql/web/org.openbravo.retail.posterminal/?terminal=VBS-1#login'
[1583170292.410][SEVERE]: Timed out receiving message from renderer: 0.100
[1583170292.513][SEVERE]: Timed out receiving message from renderer: 0.100
[1583170292.615][SEVERE]: Timed out receiving message from renderer: 0.100
[1583170292.981][SEVERE]: Timed out receiving message from renderer: 0.100
[1583170293.082][SEVERE]: Timed out receiving message from renderer: 0.100
[1583170293.183][SEVERE]: Timed out receiving message from renderer: 0.100
[1583170293.284][SEVERE]: Timed out receiving message from renderer: 0.100
[1583170293.570][SEVERE]: Timed out receiving message from renderer: 0.100
2020-03-02 18:31:33.756 DEBUG c.k.k.c.w.k.b.NavigateToUrlKeyword - ✓ Navigate to 'https://livebuilds.openbravo.com/retail_pi_pgsql/web/org.openbravo.retail.posterminal/?terminal=VBS-1#login' successfully
2020-03-02 18:31:33.756 DEBUG testcase.New Test Case - 3: setText(findTestObject("Object Repository/ob_Temp/input_User_terminal_containerWindow_login_f_dd4da6"), "test")
2020-03-02 18:31:33.772 DEBUG c.k.k.core.testobject.ObjectRepository - Finding Test Object 'Object Repository/ob_Temp/input_User_terminal_containerWindow_login_f_dd4da6'
2020-03-02 18:31:33.875 DEBUG c.kms.katalon.core.helper.KeywordHelper - Checking object
2020-03-02 18:31:33.875 DEBUG c.k.k.c.w.k.builtin.SetTextKeyword - Checking text
2020-03-02 18:31:33.875 DEBUG c.k.k.c.webui.common.WebUiCommonHelper - Finding web element from Test Object's properties
2020-03-02 18:31:33.876 DEBUG c.kms.katalon.core.helper.KeywordHelper - Checking timeout
2020-03-02 18:31:33.876 DEBUG c.k.k.c.webui.common.WebUiCommonHelper - Finding web element with id: 'Object Repository/ob_Temp/input_User_terminal_containerWindow_login_f_dd4da6' located by 'By.xpath: //input[@id='terminal_containerWindow_login_formElementUsername_coreElementContainer_username']' in '30' second(s)
2020-03-02 18:31:33.877 DEBUG c.k.k.c.webui.common.internal.SmartWait - Smart Wait Function is triggered
2020-03-02 18:31:37.085 DEBUG c.k.k.c.webui.common.WebUiCommonHelper - Found 1 web elements with id: 'Object Repository/ob_Temp/input_User_terminal_containerWindow_login_f_dd4da6' located by 'By.xpath: //input[@id='terminal_containerWindow_login_formElementUsername_coreElementContainer_username']' in '30' second(s)
2020-03-02 18:31:37.086 DEBUG c.k.k.c.w.k.builtin.SetTextKeyword - Clearing text of object 'Object Repository/ob_Temp/input_User_terminal_containerWindow_login_f_dd4da6'
2020-03-02 18:31:37.137 DEBUG c.k.k.c.w.k.builtin.SetTextKeyword - Setting text of object 'Object Repository/ob_Temp/input_User_terminal_containerWindow_login_f_dd4da6' to value 'test'
2020-03-02 18:31:37.164 DEBUG c.k.k.c.w.k.builtin.SetTextKeyword - ✓ Text 'test' is set on object 'Object Repository/ob_Temp/input_User_terminal_containerWindow_login_f_dd4da6'
2020-03-02 18:31:37.164 DEBUG testcase.New Test Case - 4: setEncryptedText(findTestObject("Object Repository/ob_Temp/input_Password_terminal_containerWindow_log_eee0a3"), "P9ET2sDE0SE=")
2020-03-02 18:31:37.165 DEBUG c.k.k.core.testobject.ObjectRepository - Finding Test Object 'Object Repository/ob_Temp/input_Password_terminal_containerWindow_log_eee0a3'
2020-03-02 18:31:37.245 DEBUG c.kms.katalon.core.helper.KeywordHelper - Checking object
2020-03-02 18:31:37.245 DEBUG c.k.k.c.w.k.b.SetEncryptedTextKeyword - Checking text
2020-03-02 18:31:37.284 DEBUG c.k.k.c.webui.common.WebUiCommonHelper - Finding web element from Test Object's properties
2020-03-02 18:31:37.284 DEBUG c.kms.katalon.core.helper.KeywordHelper - Checking timeout
2020-03-02 18:31:37.285 DEBUG c.k.k.c.webui.common.WebUiCommonHelper - Finding web element with id: 'Object Repository/ob_Temp/input_Password_terminal_containerWindow_log_eee0a3' located by 'By.xpath: //input[@id='terminal_containerWindow_login_formElementPassword_coreElementContainer_password']' in '30' second(s)
2020-03-02 18:31:37.285 DEBUG c.k.k.c.webui.common.internal.SmartWait - Smart Wait Function is triggered
2020-03-02 18:31:37.548 DEBUG c.k.k.c.webui.common.WebUiCommonHelper - Found 1 web elements with id: 'Object Repository/ob_Temp/input_Password_terminal_containerWindow_log_eee0a3' located by 'By.xpath: //input[@id='terminal_containerWindow_login_formElementPassword_coreElementContainer_password']' in '30' second(s)
2020-03-02 18:31:37.549 DEBUG c.k.k.c.w.k.b.SetEncryptedTextKeyword - Clearing text of object 'Object Repository/ob_Temp/input_Password_terminal_containerWindow_log_eee0a3'
2020-03-02 18:31:37.585 DEBUG c.k.k.c.w.k.b.SetEncryptedTextKeyword - Setting text of object 'Object Repository/ob_Temp/input_Password_terminal_containerWindow_log_eee0a3' to value ******
2020-03-02 18:31:37.616 DEBUG c.k.k.c.w.k.b.SetEncryptedTextKeyword - ✓ Text ****** has been set on object 'Object Repository/ob_Temp/input_Password_terminal_containerWindow_log_eee0a3'
2020-03-02 18:31:37.617 DEBUG testcase.New Test Case - 5: click(findTestObject("Object Repository/ob_Temp/div_Log In"))
2020-03-02 18:31:37.617 DEBUG c.k.k.core.testobject.ObjectRepository - Finding Test Object 'Object Repository/ob_Temp/div_Log In'
2020-03-02 18:31:37.723 DEBUG c.kms.katalon.core.helper.KeywordHelper - Checking object
2020-03-02 18:31:37.723 DEBUG c.k.k.c.webui.common.WebUiCommonHelper - Finding web element from Test Object's properties
2020-03-02 18:31:37.723 DEBUG c.kms.katalon.core.helper.KeywordHelper - Checking timeout
2020-03-02 18:31:37.723 DEBUG c.k.k.c.webui.common.WebUiCommonHelper - Finding web element with id: 'Object Repository/ob_Temp/div_Log In' located by 'By.xpath: //div[@id='terminal_containerWindow_login_loginButton_components']' in '30' second(s)
2020-03-02 18:31:37.723 DEBUG c.k.k.c.webui.common.internal.SmartWait - Smart Wait Function is triggered
2020-03-02 18:31:37.969 DEBUG c.k.k.c.webui.common.WebUiCommonHelper - Found 1 web elements with id: 'Object Repository/ob_Temp/div_Log In' located by 'By.xpath: //div[@id='terminal_containerWindow_login_loginButton_components']' in '30' second(s)
2020-03-02 18:31:37.970 DEBUG c.kms.katalon.core.helper.KeywordHelper - Checking timeout
2020-03-02 18:31:37.970 DEBUG c.k.k.c.w.keyword.builtin.ClickKeyword - Clicking on object: 'Object Repository/ob_Temp/div_Log In'
2020-03-02 18:31:38.009 DEBUG c.k.k.c.w.keyword.builtin.ClickKeyword - Trying Selenium click !
2020-03-02 18:31:39.077 DEBUG c.k.k.c.w.keyword.builtin.ClickKeyword - Trying to scroll to the element and use Selenium click !
2020-03-02 18:31:40.408 DEBUG c.k.k.c.w.keyword.builtin.ClickKeyword - Trying to scroll the element and use Context click !
2020-03-02 18:31:40.590 DEBUG c.k.k.c.w.keyword.builtin.ClickKeyword - ✓ Object: 'Object Repository/ob_Temp/div_Log In' is clicked on
2020-03-02 18:31:40.591 TRACE c.k.katalon.core.main.TestCaseExecutor - END null: click(findTestObject("Object Repository/ob_Temp/div_Log In"))
2020-03-02 18:31:40.592 DEBUG c.k.katalon.core.main.TestCaseExecutor - ✓ Test Cases/_openbravo/New Test Case
2020-03-02 18:31:40.596 DEBUG c.k.k.core.context.internal.TestHooker - STEP afterTestcase
2020-03-02 18:31:40.596 DEBUG c.k.k.core.context.internal.TestHooker - Starting invoke 'com.kms.katalon.core.annotation.AfterTestCase' method: 'TestListener.afterTestcase(...)'
2020-03-02 18:31:40.634 DEBUG c.k.k.c.w.k.builtin.CloseBrowserKeyword - Closing browser
2020-03-02 18:31:41.299 DEBUG c.k.k.c.w.k.builtin.CloseBrowserKeyword - ✓ Browser is closed
2020-03-02 18:31:41.300 DEBUG c.k.k.core.context.internal.TestHooker - Invoke 'com.kms.katalon.core.annotation.AfterTestCase' method: 'TestListener.afterTestcase(...)' completed.
2020-03-02 18:31:41.301 TRACE c.k.k.core.context.internal.TestHooker - END null: closeBrowser()
2020-03-02 18:31:41.302 TRACE c.k.k.core.context.internal.TestHooker - END null: afterTestcase
2020-03-02 18:31:41.303 INFO c.k.katalon.core.main.TestCaseExecutor - END Test Cases/_openbravo/New Test Case
Tks in advance for your help