I'm running a macro with Imacro to do mass follow on Twitter.
The macro does not seem to work anymore.
Here is the results :
RuntimeError: element BUTTON specified by TXT:Suivre<SP>AbonnÈ<SP>Se<SP>dÈsabonner<SP>BloquÈ<SP>DÈbloquer* was not found, line: 1
What should I do ?
You need to use TYPE=SPAN like that
TAG POS={{!LOOP}} TYPE=SPAN ATTR=TXT:Abonné<SP>Se<SP>désabonner<SP>Bloqué<SP>Débloquer<SP>En<SP>attente<SP>Annuler
and not TYPE=BUTTON
Related
Very simple short and straightforward. I found that if I give myself firework_rockets with a custom tag called 'test', the item has an nbt={Tags:['test']}. The command I use is /give #s firework_rocket{Tags:['test']} 64
However once the firework is shot via a crossbow, I tried to retrieve its data and to my surprise, found out that the Tags:['test'] is not stored directly in the entity, but more discretely in an nbt called tag=. For example: entity firework_rocket has the following data ---
{OnGround:0b,Air:300s,blah blah blah, tag: {Tags:["test"]},Count:64b}
As seen from above, this Tags:["test"] tag in being stored in an nbt tag called tag.
If I want to detect a specific nbt tag such as the Air tag, I could do so simply with execute at #e[nbt={Air:300s}] run summon tnt
But what I want to do here is to detect the Tags:["test"] tag. /execute at #e[nbt={tag:{Tags:["test"]}}] simply wont work.
I don't know if you want a command to run when you select the firework or when it turns into an entity, but here are both commands. For both instances:
Entity : /execute as #e[nbt={tag:{Tags:["test"]}}] at #s run <command>
Item : /execute as #e[nbt={SelectedItem:{tag:{Tags:["test"]}}}] at #s run <command>
Here is the bot for the auto liker:
TAB T=1
TAG POS={{!LOOP}} TYPE=BUTTON ATTR=CLASS:ProfileTweet-actionButton<SP>js-actionButton<SP>js-actionFavorite”
WAIT SECONDS=1
And here is the error:
RuntimeError: element BUTTON specified by
CLASS:ProfileTweet-actionButtonjs-actionButtonjs-actionFavorite”
was not found, line: 2
How to fix it?
You need to specify more details about the button, the below code seems to work fine.
VERSION BUILD=9030808 RECORDER=FX
TAB T=1
TAG POS={{!LOOP}} TYPE=BUTTON ATTR=TYPE:button&&DATA-MODAL:ProfileTweet-retweet&&CLASS:ProfileTweet-actionButton<SP><SP>js-actionButton<SP>js-actionRetweet
WAIT SECONDS=3
TAG POS=24 TYPE=BUTTON ATTR=TXT:Close
WAIT SECONDS=2
The selector is from this forum link.
I'm trying to count the number of links in a web page, using QTP UFT version 14 build 1775, but the count function is not recognized, maybe it has been deprecated. If someone has an idea about the issue, i'll be thankful for your help.
The is the code that I used
Set desc=description.Create()
desc("micclass").value="Link"
Set objLink =Browser("creationtime:=0").Page("title:=.*").childobjects(desc)
msgbox bjLink.count
You have a typo in your code. You're setting the objLink reference then trying to get the Count property from bjLink. Change that to objLink.Count and it will work as expected
Set desc=description.Create()
desc("micclass").value="Link"
Set objLink =Browser("creationtime:=0").Page("title:=.*").childobjects(desc)
msgbox objLink.count
My customer has reported a problem that standard ''print'' button in Z-report which a developer wrote before is not working.
How can I enable the button?
MODULE user_command_0100 INPUT.
DATA: GS_STATUS TYPE SLIS_STATUS,
XS_STATUS LIKE GS_STATUS.
CASE sy-ucomm.
WHEN 'BACK' OR '%EX' OR 'RW'.
LEAVE TO SCREEN 0.
WHEN '&RNT'.
ENDCASE.
ENDMODULE.
Then button needs a usercommand assigned, which is then processed in pai. usually with a general form called get_ucomm (many developers call it similar). You also can issue /h in transaction field and then press the print-button. /h will trigger the debugger and You can inspect the report step by step.
That's all I can say without seeing the code. Hope this will help.
Which user command do you define in your GUI status?
If you have a standard list (what I expect when you write about a z-report), then you should define the command PRI to print the list:
If you define a screen (using the screen painter) or an ALV-Grid... then this solution will not help you.
If you don't know, what a GUI status is: Scan your source code for the command
SET PF-STATUS 'XXXX'.
Then double click on 'XXXX' and you should be directed to the status definition. There may by multiple status (and status with generic names).
I've seen your code and for the &RNT option there's no code to execute, so if the user wants to print the button will do nothing.
MODULE user_command_0100 INPUT.
DATA: GS_STATUS TYPE SLIS_STATUS,
XS_STATUS LIKE GS_STATUS.
CASE sy-ucomm.
WHEN 'BACK' OR '%EX' OR 'RW'.
LEAVE TO SCREEN 0.
WHEN '&RNT'.
" There's no code
ENDCASE.
ENDMODULE.
I've used the 'STANDARD' GUI Status from the function group 'KKBL' and '&RNT' is the code of the print button and that's why I think that is the print button you are refering in your program.
Can you post the GUI Status you are using please?
I am trying to run some protractor tests in Safari (they run fine in Chrome).
The problem seems to be that the return key is not working correctly in sendKeys() method.
The value is being not send ( - is undefined)
Here is what I did on the input object:
input.sendKeys(value + '\n');
Also, I tried
input.sendKeys(value + protractor.Key.ENTER);
But getting the same results.
According to the webdriverjs doc, the correct syntax seems to be:
input.sendKeys(value, protractor.Key.ENTER);
Have you also tried to send the text and the enter key separately:
input.sendKeys(value);
input.sendKeys(protractor.Key.ENTER);
You should be able to do something like this:
browser.actions().sendKeys(protractor.Key.ENTER).perform();
If you want to use a combination of keys in protractor, try this (for example SHIFT + TAB):
browser.actions().sendKeys(protractor.Key.SHIFT, protractor.Key.TAB).perform();