greendarkness
12 years agoContributor
contentText property checkpoint is adding \r that break the contains checkpoints
I'm using version 10.30.1145.7, and I realize it is out of date, so if the update fixes this that'd be great.
I kept getting the error: The property checkpoint failed (Reason: the contentText does not contains the substring ...
Object name: Sys["Browser"]("iexplore")["Page"]("http://vm2008r2a/PaperLess.Test/Modules/MobileTransaction/PickSalesOrder/PickSalesOrderPage.aspx")["Form"]("aspnetForm")["Panel"]("container")["Panel"]("content")
Property: contentText
Actual value "function FocusDefaultControl(eleId) { try { var ele = document.getElementById(eleId); if (ele != null) (ele.focus()); } catch (err) { } } .rowLocked { background: rgb(61, 42, 148); background: rgba(40, 84, 255, 0.50); } Pick List: 501 Item: Location: FG01 Batch/Lot: FIFO: 6/28/1997 To Pick: 4 On Hand: 1101 Quantity: Stage Location: 1STAGE 2STAGE 9STAGE"
Expected value "Pick List: 501 Item: Location: FG01 Batch/Lot: FIFO: 6/28/1997 To Pick: 4 On Hand: 1101 Quantity: Stage Location: 1STAGE 2STAGE 9STAGE"
Condition cmpContains
Case-sensitive false
I was trying to use cmpContains so I could ignore that javascript part at the begining that is showing up because it's commented out in the HTML, but it wasn't working. What's weird is this was working before, but the On Hand value changed by 1 and I had to update it. That's when this started to break.
I actually solved the issue myself by reading through how contentText documentation, and it says that in c# script mode it should be \n for new lines, and when I looked at the value area I could see \r\n:
Aliases["Browser"]["MobileModulesPage"]["formAspnetform"]["panelContainer"]["panelContent"], "contentText", 6, "Pick List:\r\n501\r\nItem:\r\nLocation:\r\nFG01\r\nBatch/Lot:\r\nFIFO:\r\n6/28/1997\r\nTo Pick:\r\n4\r\nOn Hand:\r\n1101\r\nQuantity:\r\nStage Location:\r\n1STAGE\r\n2STAGE\r\n9STAGE", false
So it seems to be adding \r when it shouldn't for some reason. I manually changed the value to remove all the \r and the property checkpoint works now. So is this something that's known about? Is it fixed in the latest version?
I kept getting the error: The property checkpoint failed (Reason: the contentText does not contains the substring ...
Object name: Sys["Browser"]("iexplore")["Page"]("http://vm2008r2a/PaperLess.Test/Modules/MobileTransaction/PickSalesOrder/PickSalesOrderPage.aspx")["Form"]("aspnetForm")["Panel"]("container")["Panel"]("content")
Property: contentText
Actual value "function FocusDefaultControl(eleId) { try { var ele = document.getElementById(eleId); if (ele != null) (ele.focus()); } catch (err) { } } .rowLocked { background: rgb(61, 42, 148); background: rgba(40, 84, 255, 0.50); } Pick List: 501 Item: Location: FG01 Batch/Lot: FIFO: 6/28/1997 To Pick: 4 On Hand: 1101 Quantity: Stage Location: 1STAGE 2STAGE 9STAGE"
Expected value "Pick List: 501 Item: Location: FG01 Batch/Lot: FIFO: 6/28/1997 To Pick: 4 On Hand: 1101 Quantity: Stage Location: 1STAGE 2STAGE 9STAGE"
Condition cmpContains
Case-sensitive false
I was trying to use cmpContains so I could ignore that javascript part at the begining that is showing up because it's commented out in the HTML, but it wasn't working. What's weird is this was working before, but the On Hand value changed by 1 and I had to update it. That's when this started to break.
I actually solved the issue myself by reading through how contentText documentation, and it says that in c# script mode it should be \n for new lines, and when I looked at the value area I could see \r\n:
Aliases["Browser"]["MobileModulesPage"]["formAspnetform"]["panelContainer"]["panelContent"], "contentText", 6, "Pick List:\r\n501\r\nItem:\r\nLocation:\r\nFG01\r\nBatch/Lot:\r\nFIFO:\r\n6/28/1997\r\nTo Pick:\r\n4\r\nOn Hand:\r\n1101\r\nQuantity:\r\nStage Location:\r\n1STAGE\r\n2STAGE\r\n9STAGE", false
So it seems to be adding \r when it shouldn't for some reason. I manually changed the value to remove all the \r and the property checkpoint works now. So is this something that's known about? Is it fixed in the latest version?