Techist - Tech Forum - View Single Post - Exception : missing ) after argument list

Click Here to Login
View Single Post
Old 02-11-2010, 03:41 PM   #1 (permalink)
Virgin Techie
Join Date: Feb 2010
Posts: 0
Default Exception : missing ) after argument list

I'm trying to get a statement to work but having this problem of double quote escape. My programs throws the error: Exception : missing ) after argument list

For you reference my statement is:

selenium.isElementPresent(\"//div[@id='moreChoicesCampList']//div[@class='BasicContainer CampaignBoxOfferRow']//div[@class='MenuBoxSubTitle campBoxesClipName' and @title=\""
+ _global_sponsor_title + "\"]\");

_global_sponsor_title: Everybody's Record. the xpath has tthe problem in reading single quote. Hence I try to use double quote which solves the quote conflict. It would be great if you can help me in solving the quote conflict. I want it to look something like:

selenium.isElementPresent(\"//div[@id='moreChoicesCampList']//div[@class='BasicContainer CampaignBoxOfferRow']//div[@class='MenuBoxSubTitle campBoxesClipName' and @title="Everybody's Record"]\");

Please help.
shola is offline  

Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -5. The time now is 06:48 PM.

Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2018, vBulletin Solutions, Inc.