473,407 Members | 2,320 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

Exception : missing ) after argument list

I understand that the closing parenthesis is required for this kind of error..

Here is my expression and I don;t see missing anything. Please help!

selenium.waitForCondition(
"selenium.isElementPresent(\"//div[@id='endorsedCampaignList']//div[@class='myEndorsmentsContainer']/div[@class='BasicContainer CampaignBoxOfferRow']//div[@class='MenuBoxSubTitle' and @title=\""
+ _global_sponsor_title + "\"]\");", "90000");


If I run this line: I get the Exception : missing ) after argument list
Looking forward to your reply.

Thanks! Shola
Feb 16 '10 #1
2 4236
Expand|Select|Wrap|Line Numbers
  1. selenium.waitForCondition(
  2. "selenium.isElementPresent(\"
  3. //div[@id='endorsedCampaignList']
  4. //div[@class='myEndorsmentsContainer']
  5. /div[@class='BasicContainer CampaignBoxOfferRow']
  6. //div[@class='MenuBoxSubTitle' and 
  7. @title=\""+ _global_sponsor_title + "\"]\");
  8. ", "90000");
Errm - I'm not sure what this code was supposed to do, but if I were a picky browser I'd see the 3 comments and end your expression at the first one. Did you mean to put only one dash, or a "\\"?
Feb 16 '10 #2
oh.. they are not comments.. Its an xpath expression... Okay let me put it this way:
this is an xpath exp... _global_sponsor_title may contain Strings like either Domino or Domino's Pizza... the problem comes with the apostrophe ' as in 2nd ex... By enclosing the strings within double quotes solves the problem.. But I get the exception as Exception : missing ) after argument list when I run the below exp.. I saw a similar issue in this thread and it says quote placed wrong way, etc... Please help me if my exp is missing any quote or parenthesis.. Thanks!

(\"//div[@id='endorsedCampaignList']//div[@class='myEndorsmentsContainer']/div[@class='BasicContainer CampaignBoxOfferRow']//div[@class='MenuBoxSubTitle' and @title=\""
+ _global_sponsor_title + "\"]\")
Feb 16 '10 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

19
by: Ross A. Finlayson | last post by:
Hi, I hope you can help me understand the varargs facility. Say I am programming in ISO C including stdarg.h and I declare a function as so: void log_printf(const char* logfilename, const...
2
by: ehsansad | last post by:
I have the following code. function updateTermsList() { var termDivBox = document.getElementById("termarea"); var terms = searchXMLHttp.responseXML.getElementsByTagName("term"); ...
2
by: M. Fisher | last post by:
I have a line in my html file as following: <div id="selectBox" class="selectbox" onclick="$ ('PostMark_Pa4440a_SelectCol_1').toggle();" onmouseout="setTimeout('$...
5
by: Vv_vV | last post by:
Hi all, I try to call onchange a function and get "missing ) after argument list" error Probably systaxis issue Thanks in advance for any help! Code: var html = ""; var myurl =...
9
by: deedub65 | last post by:
I am getting a "Missing ) after argument list" on two different sets of commands in the same script - they are part of Dreamweaver MX's files, so i am not sure how they got altered - thanks for the...
8
by: Yew12 | last post by:
Hi, The following code is supposed to stop a booking being made if falls between another bookings start and end date. Unfortunately I get the following error message PLS-00410: duplicate...
2
by: Scott | last post by:
I'm trying to write a function that accepts a variable number of arguments and passes those arguments to another function. Here is an example: def foo(*args): print "I'm going to call bar with...
30
by: Adam | last post by:
Hi, I have a simple printf-like function: int print(const char *format, ...) { char buffer; va_list argptr; int i;
1
by: hariomt | last post by:
Hi, i have to create table's rows dynamically. I am using bellow code snipet... function copySelectedAttr() { var attrValue=...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.