Sign in to follow this  
Followers 0
Pao

Autoit and Firefox 54 e10s

7 posts in this topic

#1 ·  Posted (edited)

Hello, I've recently updated from Firefox 50 to 54.0.1.

My Autoit script that previously worked fine, now seems to have erratic problems.
It's almost as if some Send() commands are sometimes skipped when dealing with the Firefox UI (it's still mostly fine on the actual pages).

To temporarly fix the problem, I had to put some Sleep(200) pauses and avoid grouping keys together (e.g: TAB 2), but I'm not exactly sure about the correct way to deal with this..

Could this be caused by the new multiprocess feature? (e10s)
Are there better Autoit commands or rules that I should use?

 

Edited by Pao

Share this post


Link to post
Share on other sites



@Pao it is a bit difficult to help you troubleshoot a script when you post nothing. How about posting your code (or a reproducer that shows the issue you're encountering), help us help you ;)

 


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Eh.. well, I was curious if someone else encountered this issue before.
I can't exactly show you a meaningful example,  because the script operates on forms in an admin webpage.

I don't know if this piece of code will be useful at all, but I had to change this:

Send("{CTRLDOWN}k{CTRLUP}")
Send("{TAB 3}{DOWN " & $eventnum & "}{TAB}{SPACE}")

Into this (quick&dirty workaround):

Send("{CTRLDOWN}k{CTRLUP}")
Sleep(200)
Send("{TAB}")
Sleep(200)
Send("{TAB}")
Sleep(200)
Send("{TAB}")
Sleep(200)
Send("{DOWN " & $eventnum & "}")
Sleep(200)
Send("{TAB}")
Send("{SPACE}")

(I'll have to test it further, though)
 

Edited by Pao

Share this post


Link to post
Share on other sites

"weird colors" is called syntax highlighting, the same as you would get in the SciTE console. Secondly, we understand that you can't always post code that contains sensitive information, which is why we ask for a reproducer. It also helps you narrow down the issue - e.g. is this only happening on your admin webpage, or on another webpage you try to manipulate? 


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

57 minutes ago, JLogan3o13 said:

"weird colors" is called syntax highlighting, the same as you would get in the SciTE console.

Sorry, I edited out that phrase before your reply.
I know about syntax highlighting, but the colors were basically random before. O_o
Then they went ok after posting.

(it happens again if I try to add that code inside the tag)

Edited by Pao

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

1 hour ago, JLogan3o13 said:

we ask for a reproducer. It also helps you narrow down the issue - e.g. is this only happening on your admin webpage, or on another webpage you try to manipulate? 

Those forms are only on the admin pages.
I'll have to look for other places to reproduce this error.
I'll let you know..
 

Btw my script now sometimes works and sometimes fails.. :blink:

Edited by Pao

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

Ok nevermind, it seems that the new Firefox UI is simply just slower than before.
Adding Sleep(100) after each command seems the only way to get consistent results.

Example:
in FF50 this moved the focus on the search bar (CTRL+K), then on the tab bar, then on the page area, then went to the top of the current page.

Send("{CTRLDOWN}k{CTRLUP}{TAB 2}{HOME}")

Now, in FF54, sometimes TAB is registered instead of TAB2, causing the focus to stop at the tab bar and thus moving to the first one after HOME.
This seems to work correctly, instead:

Send("{CTRLDOWN}k{CTRLUP}")
Sleep(100)
Send("{TAB}")
Sleep(100)
Send("{TAB}")
Sleep(100)
Send("{HOME}")

Problem solved, I guess.

 

 

 

Edited by Pao

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
Sign in to follow this  
Followers 0

  • Similar Content

    • rte7
      By rte7
      Hello. We work with the BMC Remedy site to manage incidents and would like to automate the processes of clicking through this button code:
      <a href="javascript:" class="btn btn3d menu" style="top:21; left:184; width:21; height:21;"> <img class="btnimg" src="../../../../resources/images/mt_sprites.gif" alt="menu category issue" title=""> </a> I use firefox with mozrepl and autoit with include FF.au3
      I need your help
      I read the topic https://www.autoitscript.com/forum/topic/95595-ffau3-v0601b-10/ but I could not run the code from the listed commands
      ...
      It is necessary to press the button and from the list of the menu of cahorsations to select the item = "zone of trust abonent"
      Screen # 1 http://joxi.ru/52aJK7bh4a7ypA or below.
      1) Press button
      <a href="javascript:" class="btn btn3d menu" style="top:21; left:184; width:21; height:21;"> <img class="btnimg" src="../../../../resources/images/mt_sprites.gif" alt="menu category issue" title=""> </a>
      2) After pressing the button, I need to choose in this menu of 4 items to select an item called "zone of trust abonent", Screen # 2 - http://joxi.ru/p27gwQKHo71VQ2
      html code table items
      <table class="MenuTable" cellpadding="0" cellspacing="0" style="width: 179px;"> <tbody class="MenuTableBody"> <tr class="MenuTableRow"> <td class="MenuEntryName" nowrap="">zone of trust abonent</td> <td class="MenuEntryNoSub" arvalue="zone of trust abonent"></td> </tr> <tr class="MenuTableRow"><td class="MenuEntryName" nowrap="">zone of trust operator</td> <td class="MenuEntryNoSub" arvalue="zone of trust operator"></td> </tr> <tr class="MenuTableRow"><td class="MenuEntryName" nowrap="">zone of trust third operator</td> <td class="MenuEntryNoSub" arvalue="zone of trust third operator"></td></tr> <tr class="MenuTableRow"><td class="MenuEntryNameHover" nowrap="">No settings</td> <td class="MenuEntryNoSubHover" arvalue="No settings"></td> </tr> </tbody> </table>
       
       
      More in detail, I choose from the menu item "zone of trust abonent" Screen # 3 - http://joxi.ru/GrqVq4ZIQEPW4m

       
      3) The choice is made, Screen # 4 http://joxi.ru/v297w6aC3PovLr
      <textarea class="text sr " wrap="off" id="arid_WIN_0_1000002488" cols="20" maxlen="60" style="top:21; left:0; width:179; height:21;" armenu="CFG:PRC:CategoryHPD-Res-T1-Q" mstyle="2" arautoc="1" arautocmb="1" arautocak="0" arautoctt="400" rows="1"> </textarea>
       
      It's all. I would be very grateful to you =) !!!!!!!!!!
      Here are more detailed codes in the attachment. 
      button1.txt
      menu - table.txt
      all.txt
    • milos83
      By milos83
      How can I check if element is focused in Firefox using FF.au3 UDF?
      This is my try:
      I have prepared a function that checks if the object is focused:
       
      _FFCmd('FFau3.isfocused=function isfocused(a){try{return (a === document.activeElement)}catch(e){return}}') $oElm = _FFXPath("//*[@id='someId']") ConsoleWrite(_FFIsFocused($oElm)) Func _FFIsFocused($sElement = "") Local $isFoc = _FFCmd("FFau3.isfocused(" & $sElement & ")") Return $isFoc EndFunc ;==>_FFIsFocused Now, the javascript part is tested and it does return successfully.
      After a lot of try/fails I inserted an alert box in order to display the object being compared.
      Here is what I got
       
      The focused object is: [object XULElement]
      The object that I send for comparing is [object HTMLInputElement]
      Why is that?
       
       
    • spuuunit
      By spuuunit
      Is it possible to know if a textbox is active in FireFox?
       
      This is what I want:
      if (Textbox in FireFox == Active) { }
    • tonycst
      By tonycst
      I want to pass "about:config" to firefox
      If i do ShellExecute ("firefox.exe","about:config"), i get new instance of firefox opening up which is bad because it makes changes to another profile instead of one that is currently running.
      Any ideas ?
    • mazz3d
      By mazz3d
      hello  everyone,
      I'm new with AutoIT and just looking for a way to open Firefox with random window size
      i have tried too many different samples from the web, some how it works but i can't make it works with Firefox 
      MozRpel and ff.au3 installed 
      right now i can open Firefox with this code, but i still can't control the window of Firefox
      ; open firefox #include <ff.au3> _FFStart() ; open firefox with random size