My Oracle Support Banner

Error 'invalid selector: Unable to locate an element with the xpath expression' with Fields having Single Quotes or Apostrophe while Playing Test Scripts (Doc ID 2964644.1)

Last updated on SEPTEMBER 29, 2023

Applies to:

Siebel Test Automation Interfaces - Version 23.2 to 23.9 [Release V17]
Information in this document applies to any platform.


When attempting to play the test script which is having the field name with single quote causing below error in generated report

The issue can be reproduced at will with the following steps:

Tools side changes:


  1. Login to Siebel tools
  2. Go to Contact Business Component
  3. Change the 'First Name' field to 'Contact's First Name' field
  4. Display the Field in Contact List Applet
  5. Deliver the changes to MAIN

Application Level Testing:


  1. Login to Siebel Application with AutoOn
  2. Start recording
  3. Go to Contact List Applet
  4. Create new record and enter Contact's First Name and Last Name
  5. Save the record
  6. Stop recording and generate test script
  7. Play the test script and observe the error from Generated HTML report





To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.