使用github上的代码示例,它仅在1.5.7版中有效。当我尝试在1.6.1版中运行时,会发生下面描述的错误
你想知道我怎么解决这个问题吗,有人能帮我吗
2021-01-07 00:16:57.932 | DEBUG | altunityrunner.commands.base_command:recvall:52 - Received data
was: 1.6.1
2021-01-07 00:16:57.949 | INFO | altunityrunner.runner:_check_server_version:62 - Connection
established with AltUnity Server. Version: 1.6.1
2021-01-07 00:16:57.966 | DEBUG | altunityrunner.commands.base_command:recvall:52 - Received data
was: Ok
2021-01-07 00:16:57.984 | DEBUG | altunityrunner.commands.base_command:recvall:52 - Received data
was: error:notFound
2021-01-07 00:16:57.995 | DEBUG |
altunityrunner.commands.command_returning_alt_elements:get_alt_element:14 - error:notFound
2021-01-07 00:16:57.995 | DEBUG |
altunityrunner.commands.command_returning_alt_elements:get_alt_element:21 - handle errors
2021-01-07 00:16:57.998 | DEBUG | altunityrunner.commands.close_connection:execute:14 - Sent close
connection command...
Error
Traceback (most recent call last):
File "C:\Users\tf.dias\AppData\Local\Programs\Python\Python36\lib\unittest\case.py", line 59, in
testPartExecutor
yield
File "C:\Users\tf.dias\AppData\Local\Programs\Python\Python36\lib\unittest\case.py", line 605, in run
testMethod()
File "D:\_Automation\_Projects_automation\game-2020-brs-party-
games\Automation_Altunity_Python\Automation\runner\test_gameplay.py", line 10, in
test_avoiding_obstacles
self.game_play_page.avoid_obstacles(5)
File "D:\_Automation\_Projects_automation\game-2020-brs-party-
games\Automation_Altunity_Python\Automation\pages\page_gameplay.py", line 13, in avoid_obstacles
character = self.driver.find_object(By.NAME, "/PlayerPivot")
File "D:\_Automation\_Projects_automation\game-2020-brs-party-
games\Automation_Altunity_Python\Env\lib\site-packages\altunityrunner\runner.py", line 93, in
find_object
return FindObject(self.socket, self.request_separator, self.request_end, by, value, camera_by,
camera_path, enabled).execute()
File "D:\_Automation\_Projects_automation\game-2020-brs-party-
games\Automation_Altunity_Python\Env\lib\site-
packages\altunityrunner\commands\FindObjects\find_object.py", line 28, in execute
return self.get_alt_element(data)
File "D:\_Automation\_Projects_automation\game-2020-brs-party-
games\Automation_Altunity_Python\Env\lib\site-
packages\altunityrunner\commands\command_returning_alt_elements.py", line 22, in get_alt_element
self.handle_errors(data)
File "D:\_Automation\_Projects_automation\game-2020-brs-party-
games\Automation_Altunity_Python\Env\lib\site-packages\altunityrunner\commands\base_command.py", line
67, in handle_errors
raise NotFoundException(data)
altunityrunner.altUnityExceptions.NotFoundException: error:notFound`
目前没有回答
相关问题 更多 >
编程相关推荐