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.
Regards,
Ray
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.
Regards,
Ray