Jump to content
Clerythecleric

Putting text in the innertext of a class using _FF?

Recommended Posts

Clerythecleric
Posted (edited)

Hello,



This is my code, I know the _FFCMD is likely wrong. (shown below)

$oTD = _FFXpath("/html/body/form/section[1]/table/tbody/tr[2]/td[7]")
    _FFCmd("FFau3.xpath.innertext='Test'")
    MsgBox("", "", "finish")

Trying to get text into here. (shown below)

<td class="newAudioPlayerSegmentation"> *Text to go here* </td>

I know the xpath is correct as i can use _FFOBj to get the textcontent of what's in there, but how do i manipulate the text?

Thank you
Clery

 

Edited by Clerythecleric

Share this post


Link to post
Share on other sites
Danp2

Your _FFCmd looks ok to me. Any meaningful content showing in the Scite output window?

Hint: Use the console in the Developer Tools (hit F12 to activate) to figure out the correct syntax. You can right click on an element and then select "Use in console". This will give you a variable (likely temp0) that you can use for testing. Once you get it working in the console, then you can implement using _FFXpath / _FFCmd.

  • Like 1

Share this post


Link to post
Share on other sites
therks

I don't know anything about the FF.au3, but I know some HTML/JS and I think your issue here is innerText needs to capitalized precisely (capital T).

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×