I am not able to edit an xml in a git repository.
While i am able to navigate till the pom.xml page in the repository and also able to click edit button , post which i am not able to select and edit a given tag in the xml i.e version tag.
as seen in the screenshot . I have tried multiple methods to resolve this and surprising fact is i am able to get the value of the intended tag using GetText() even though SetText() doesnt work-
WebUI.setText(findTestObject(‘object repo path’), ‘20.10.00.01-SNAPSHOT’)
- SetText - gives element not interactable error . :- error given below.
- WaitForElement - so as to wait for the element to be available but in vain.
- Send Keys - so as to use SHIFT+HOME to select the text and then press DELETE ,
but that resulted in send keys error . - Using JS -
WebElement element = WebUiCommonHelper.findWebElement(findTestObject(‘textarea’),
30)
WebUI.executeJavaScript(“arguments[0].value=‘’”, Arrays.asList(element)). This step doesnt give any error but doesn’t edit too
- Katalon Studio Version: 7.2.1
- OS Version:Windows 10
- Browser Version:Chrome - 83.0.4103.116
Steps to reproduce - try editing any xml within a github repository page
Error stack trace for setText() :-
com.kms.katalon.core.exception.StepFailedException: Unable to set text ‘20.10.00.01-SNAPSHOT’ of object ‘Object Repository/Release auto/Page_Source of pomxml - SCOE - Tele2 NL Bitbucket/textarea’
at com.kms.katalon.core.webui.keyword.internal.WebUIKeywordMain.stepFailed(WebUIKeywordMain.groovy:64)
at com.kms.katalon.core.webui.keyword.internal.WebUIKeywordMain.runKeyword(WebUIKeywordMain.groovy:26)
at com.kms.katalon.core.webui.keyword.builtin.SetTextKeyword.setText(SetTextKeyword.groovy:66)
at com.kms.katalon.core.webui.keyword.builtin.SetTextKeyword.execute(SetTextKeyword.groovy:37)
at com.kms.katalon.core.keyword.internal.KeywordExecutor.executeKeywordForPlatform(KeywordExecutor.groovy:72)
at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords.setText(WebUiBuiltInKeywords.groovy:950)
at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords$setText$1.call(Unknown Source)
at Scoe Branch change.run(Scoe Branch change:83)
at com.kms.katalon.core.main.ScriptEngine.run(ScriptEngine.java:194)
at com.kms.katalon.core.main.ScriptEngine.runScriptAsRawText(ScriptEngine.java:119)
at com.kms.katalon.core.main.TestCaseExecutor.runScript(TestCaseExecutor.java:337)
at com.kms.katalon.core.main.TestCaseExecutor.doExecute(TestCaseExecutor.java:328)
at com.kms.katalon.core.main.TestCaseExecutor.processExecutionPhase(TestCaseExecutor.java:307)
at com.kms.katalon.core.main.TestCaseExecutor.accessMainPhase(TestCaseExecutor.java:299)
at com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.java:233)
at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:114)
at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:105)
at com.kms.katalon.core.main.TestCaseMain$runTestCase$0.call(Unknown Source)
at TempTestCase1595412704713.run(TempTestCase1595412704713.groovy:23)
Caused by: org.openqa.selenium.InvalidElementStateException: invalid element state
Screenshots: