mirror of
https://github.com/alexal1/Insomniac.git
synced 2026-04-26 10:05:50 +03:00
[GH-ISSUE #325] problem after activation and use of filters (search bar disappeared) #277
Labels
No labels
bug
duplicate
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/Insomniac#277
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @jimboker on GitHub (Apr 23, 2021).
Original GitHub issue: https://github.com/alexal1/Insomniac/issues/325
[04/23 12:34:04] Handle @vivianprat
[04/23 12:34:04] There is no special interaction-instructions for @vivianprat. Working with @vivianprat followers.
[04/23 12:34:04] Closing keyboard...
[04/23 12:34:04] The device keyboard is already closed.
[04/23 12:34:10] Traceback (most recent call last):
File "C:\Users\mitsos\AppData\Local\Programs\Python\Python39\lib\site-packages\insomniac\device_facade.py", line 473, in click
self.viewV2.click(UI_TIMEOUT_LONG, offset=(x_offset, y_offset))
File "C:\Users\mitsos\AppData\Local\Programs\Python\Python39\lib\site-packages\uiautomator2_selector.py", line 150, in click
self.must_wait(timeout=timeout)
File "C:\Users\mitsos\AppData\Local\Programs\Python\Python39\lib\site-packages\uiautomator2_selector.py", line 345, in must_wait
raise UiObjectNotFoundError({'code': -32002, 'data': str(self.selector), 'method': 'wait'})
uiautomator2.exceptions.UiObjectNotFoundError: -32002 Client error: <> data: Selector [resourceIdMatches='(?i)(com.instagram.android:id/action_bar_search_edit_text)', className='android.widget.EditText'], method: None
During handling of the above exception, another exception occurred:
Traceback (most recent call last):

File "C:\Users\mitsos\AppData\Local\Programs\Python\Python39\lib\site-packages\insomniac\safely_runner.py", line 14, in wrapper
func(*args, **kwargs)
File "C:\Users\mitsos\AppData\Local\Programs\Python\Python39\lib\site-packages\insomniac\action_runners\interact_init_.py", line 149, in job
handle_blogger(device_wrapper.get(),
File "C:\Users\mitsos\AppData\Local\Programs\Python\Python39\lib\site-packages\insomniac\action_runners\interact\action_handle_blogger.py", line 64, in handle_blogger
blogger_profile_view = search_view.navigate_to_username(username, on_action)
File "C:\Users\mitsos\AppData\Local\Programs\Python\Python39\lib\site-packages\insomniac\views.py", line 352, in navigate_to_username
search_edit_text.click()
File "C:\Users\mitsos\AppData\Local\Programs\Python\Python39\lib\site-packages\insomniac\device_facade.py", line 475, in click
raise DeviceFacade.JsonRpcError(e)
insomniac.device_facade.DeviceFacade.JsonRpcError: -32002 Client error: <> data: Selector [resourceIdMatches='(?i)(com.instagram.android:id/action_bar_search_edit_text)', className='android.widget.EditText'], method: None
@SilentKernel commented on GitHub (Apr 24, 2021):
I have the same problem, if you scroll a little bit the the bar come back
@jimboker commented on GitHub (Apr 24, 2021):
I have another problem now! The bot doesn't follow 🚶
@davebaird commented on GitHub (Apr 24, 2021):
I have the same issue.
@davebaird commented on GitHub (Apr 26, 2021):
The solution for my case was to slow everything down. I'm using an emulator, and it seems images weren't displaying quickly enough. Insomniac runs an internet speed test when it first starts but that doesn't take into account whether the device itself is introducing a delay. So I hacked the time delays in a few places (sleeper.py, and also line 1006 in views.py I switched quick=True to False, but probably a better place to modify would be where the initial speed test is run). Anyway, this slowed everything down and gave time for pages to render and everything works now so the proof-of-concept worked out.
@alexal1 commented on GitHub (Jun 22, 2021):
Fixed in
v3.7.14