Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5941779
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T16:09:29+00:00 2026-05-22T16:09:29+00:00

Amy idea what this means? Traceback (most recent call last): File C:\Python27\Sample Programs\Spynner Basic.py,

  • 0

Amy idea what this means?

Traceback (most recent call last):
  File "C:\Python27\Sample Programs\Spynner Basic.py", line 17, in <module>
    br.select("#IBESNA~US")
  File "C:\Python27\lib\site-packages\spynner\browser.py", line 862, in select
    self._runjs_on_jquery("select", jscode)
  File "C:\Python27\lib\site-packages\spynner\browser.py", line 394, in _runjs_on_jquery
    raise SpynnerJavascriptError("error on %s: %s" % (name, code))
SpynnerJavascriptError: error on select: jq('#IBESNA~US').attr('selected', 'selected')

Here’s my code:

from __future__ import division
from __future__ import unicode_literals
from __future__ import print_function
import re
import spynner
from BeautifulSoup import BeautifulSoup
import time
br = spynner.Browser()
br.create_webview()
br.show()
br.set_html_parser(BeautifulSoup)
br.load("https://www.thomsononeim.com/s-log_in.asp")
br.fill("input[name=txtLoginID]", "jmodell")
br.fill("input[name=txtPWD]", "rhb")
br.click("input[name=Submit]", wait_load=True)
br.click("input[name=Market]", wait_load=True)
br.select("option[value=IBESNA~US]")
br.browse()
br.close()

And here’s the source:

<tr>
<td valign="middle" align="right">
<select onkeypress="javascript:if ( event.keyCode == 13 ){valid();}" style="font-family:Tahoma;   font-size:11px;FONT-WEIGHT :normal;height:20px;" name="mkt">
<option value="0">All Markets</option>
<option value="IBESLA~AR">Argentina </option>
<option value="IBESAA~AU">Australia </option>
<option value="IBESEA~AT">Austria </option>
<option value="IBESEB~BE">Belgium </option>
<option value="IBESLB~BR">Brazil </option>
<option value="IBESNC~CA">Canada </option>
<option value="IBESLC~CL">Chile </option>
<option value="IBESFC~CN">China </option>
<option value="IBESLL~CO">Colombia </option>
<option value="IBESDC~HR">Croatia </option>
<option value="IBESEC~CZ">Czech Republic </option>
<option value="IBESSD~DK">Denmark </option>
<option value="IBESKE~EG">Egypt </option>
<option value="IBESDE~EE">Estonia </option>
<option value="IBESSF~FI">Finland </option>
<option value="IBESEF~FR">France </option>
<option value="IBESED~DE">Germany </option>
<option value="IBESEH~GR">Greece </option>
<option value="IBESFH~HK">Hong Kong </option>
<option value="IBESEM~HU">Hungary </option>
<option value="IBESFI~IN">India </option>
<option value="IBESFL~ID">Indonesia </option>
<option value="IBESEZ~IE">Ireland </option>
<option value="IBESFZ~IL">Israel </option>
<option value="IBESEI~IT">Italy </option>
<option value="IBESFJ~JP">Japan </option>
<option value="IBESFR~JO">Jordan </option>
<option value="IBESFM~MY">Malaysia </option>
<option value="IBESKP~MU">Mauritius </option>
<option value="IBESLM~MX">Mexico </option>
<option value="IBESKM~MA">Morocco </option>
<option value="IBESEN~NL">Netherlands </option>
<option value="IBESAN~NZ">New Zealand </option>
<option value="IBESSN~NO">Norway </option>
<option value="IBESFQ~PK">Pakistan </option>
<option value="IBESLP~PE">Peru </option>
<option value="IBESFP~PH">Philippines </option>
<option value="IBESEG~PL">Poland </option>
<option value="IBESEP~PT">Portugal </option>
<option value="IBESEK~RO">Romania </option>
<option value="IBESER~RU">Russia </option>
<option value="IBESFS~SG">Singapore </option>
<option value="IBESDR~SK">Slovakia </option>
<option value="IBESDV~SI">Slovenia </option>
<option value="IBESKS~ZA">South Africa </option>
<option value="IBESFK~KR">South Korea </option>
<option value="IBESEE~ES">Spain </option>
<option value="IBESBL~LK">Sri Lanka </option>
<option value="IBESSS~SE">Sweden </option>
<option value="IBESES~CH">Switzerland </option>
<option value="IBESFA~TW">Taiwan </option>
<option value="IBESFT~TH">Thailand </option>
<option value="IBESET~TR">Turkey </option>
<option value="IBESEX~GB">United Kingdom </option>
<option value="IBESNA~US">United States </option>
</select>
</td>
<td valign="middle">
<img width="5px" src="images/spacer.gif">
</td>
<td valign="middle">
<a href="javascript:setChildFrameWidth();valid()">
</td>
<td valign="middle">
<img width="10px" src="images/spacer.gif">
</td>
</tr>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T16:09:30+00:00Added an answer on May 22, 2026 at 4:09 pm

    This is just a guess, but I’m not sure if jQuery can modify an attribute that doesn’t exist? That option tag has no ‘selected’ attribute.

    Try giving that option tag a selected=’false’ and see if that fixes it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have 3 relevant tables. User, Orders, and Viewables The idea is that each
This should be incredibly trivial, but it's not. I have a predefined height for
I have created a helper that requires some parameters and should upload a file,
I am getting rid of browser compatibilty issues. so i come up with idea
Let's say we have the following input: <amy> (bob) <carol) (dean> We also have
In a my project in Ruby On Rails (but this is not important), when
I have a table contain the '%' in the column title, and this cause
Suppose I have a table, Foo, that looks like this: ID | Name |
I got this code working! I have a button inside a my UserControl dropped
I've the following data from a data frame Name,JoiningDate,AmtPaid Joe,12/31/09,1000 Amy,10/28/09,100 John,05/06/10,200 The Joining

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.