Re: Converting getCSS Count Code from java to python

2011-02-17 Thread SMERSH009
On Feb 17, 10:25 pm, SMERSH009 wrote: > On Feb 17, 9:51 pm, Stefan Behnel wrote: > > > > > SMERSH009, 17.02.2011 22:46: > > > > am still stuck with the following error when I try to > > > print self.count_css_matches('css=[id="listGuests"]&#

Re: Converting getCSS Count Code from java to python

2011-02-17 Thread SMERSH009
On Feb 17, 9:51 pm, Stefan Behnel wrote: > SMERSH009, 17.02.2011 22:46: > > > > > am still stuck with the following error when I try to > > print self.count_css_matches('css=[id="listGuests"]') > > I've also included the Seleniu

Re: Converting getCSS Count Code from java to python

2011-02-17 Thread SMERSH009
On Feb 2, 7:03 am, Duncan Booth wrote: > Stefan Behnel wrote: > > You are using Selenium RC here. I have no idea if there is a Python > > API to it or what that API looks like. The rest is just trivial code > > that you can map 1:1 to Python: > > >      def count_css_matches(css_locator): > >    

Converting getCSS Count Code from java to python

2011-01-31 Thread SMERSH009
Hi, I'd love some help converting this code to the python equivalent: private int getCSSCount(String aCSSLocator){ String jsScript = "var cssMatches = eval_css(\"%s\", window.document);cssMatches.length;"; return Integer.parseInt(selenium.getEval(String.format(jsScript, aCSSLocator))); }

Re: Formatting Results so that They Can be Nicely Imported into a Spreadsheet.

2007-08-05 Thread SMERSH009
On Aug 4, 8:25 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > On Aug 4, 9:21?pm, "Jim Langston" <[EMAIL PROTECTED]> wrote: > > > > > <[EMAIL PROTECTED]> wrote in message > > >news:[EMAIL PROTECTED] > > > > On Aug

Formatting Results so that They Can be Nicely Imported into a Spreadsheet.

2007-08-04 Thread SMERSH009
Hi All. Let's say I have some badly formatted text called doc: doc= """ friendid Female 23 years old Los Gatos United States friendid Male 24 years old

Re: Website data-mining.

2007-08-03 Thread SMERSH009
On Aug 3, 7:50 pm, Coogan <[EMAIL PROTECTED]> wrote: > Hi-- > > I'm using Python for the first time to make a plug-in for Firefox. > The goal of this plug-in is to take the source code from a website > and use the metadata and body text for different kinds of analysis. > My question is: How can I r

Re: Email

2007-08-03 Thread SMERSH009
On Aug 3, 9:47 am, Rohan <[EMAIL PROTECTED]> wrote: > On Aug 2, 1:06 pm, Laurent Pointal <[EMAIL PROTECTED]> wrote: > > > > > Rohan wrote: > > > I was wondering if there could be an arrangement where a file could be > > > attached and send as an email. > > > For ex > > > f = open(add.txt,w) > > > f

Re: PYTHON PROGRAMMING HELP PLSSS !!

2007-08-03 Thread SMERSH009
On Aug 2, 6:24 pm, "Dennis" <[EMAIL PROTECTED]> wrote: > HI All, > i am a 4th year business student and i took web design online course > for fun however i did not see that last 2 chapters were python > programming.This has no relevance to my major nor does it have any > contribution to my degree.

Script that Navigates Page needs Javascript Functionality

2007-08-03 Thread SMERSH009
I have a script that navigates pages and scrapes the HTML source of the page. in order to view the results I need I need python to "navigate to" this Javascript link: javascript:__doPostBack('ctl00$cpMain$pagerTop','4') This basically translates into "go to page 4." I read the posts on this group,