• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Applescript with xpath
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Applescript with xpath


  • Subject: Re: Applescript with xpath
  • From: "Mark J. Reed" <email@hidden>
  • Date: Fri, 16 Jan 2009 12:20:52 -0500

Unless there's an embedded applet of some sort (Flash, Java, etc),
anything you can do in a browser can be scripted with Javascript.  If
you're using Safari, then it has a "do javascript" command accessible
via Applescript.

Of course, if you're just submitting a form (with a file attached) to
a web service, you can do that without a browser at all.  Tedious to
get everything right, but darn fast and invisible once you do.



On 1/16/09, Pooja <email@hidden> wrote:
> Thanks Roy, Appreciate your time.
>
>   When i click the button,  it opens a popup which is used to upload a file
> and that pop up stays there until upload completes.
>
>   In pop up window, UI element browser is able to locate its element so I
> can write script on that. I am just stuck that I can not do anything to
> bring that popup. Did you come across any thing XML/HTML/XPATH/CSS which
> works well with applescript to have effect like the click does.
>
>   Thank you so much.
>   Pooja
>
>
> Roy McCoy <email@hidden> wrote:
>   Are you sure you really need to click on the buttons? I can't help you
> much here, but it would seem to me that you would likely do best to
> determine what actions are triggered by the buttons, and script these
> (presumably easier to do) rather than mouse clicks.
>
> Roy McCoy
> Rotterdam, NL
>
>
> On Jan 16, 2009, at 5:07 PM, Pooja wrote:
>
>> Hi,
>> I have a web page which has 3-4 buttons. All those 3-4 buttons can
>> not be distinguish by any property or attribute using any UI element
>> browser (prefab, mac UI browser). Those buttons have different
>> titles but they are not shown by UI browser. All those buttons have
>> different xpath though. Is there any way or tool I can use to locate
>> and click them distinguishly using Applescript.
>> I did lots of googling over it I came across XMLTool but I dont how
>> to use.
>>
>> Can anyone suggest me what should I use?
>>
>> Its bit urgent, please give me ur suggestions soon.
>>
>> Thanks
>> Pooja
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> AppleScript-Users mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
> Archives: http://lists.apple.com/archives/applescript-users
>
> This email sent to email@hidden
>
>
>

--
Sent from Gmail for mobile | mobile.google.com

Mark J. Reed <email@hidden>
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >Re: Applescript with xpath (From: Roy McCoy <email@hidden>)
 >Re: Applescript with xpath (From: Pooja <email@hidden>)

  • Prev by Date: Re: Applescript with xpath
  • Next by Date: Re: Using Applescript Droplet as Default Application? (10.4.11)
  • Previous by thread: Re: Applescript with xpath
  • Next by thread: Re: Using Applescript Droplet as Default Application? (10.4.11)
  • Index(es):
    • Date
    • Thread