Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
710 views
in Technique[技术] by (71.8m points)

selenium - Session timed out or not found while executing test in Selenoid using GitHub Actions

When running a test in GitHub Actions throws an error. Can't figure out what the problem is. Help is needed.

My test

import time
from selenium import webdriver
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
 
driver = webdriver.Remote(

https://pastebin.com/V9Zfv4y1

My workflow

name: Tests
 
on: [push]
 
jobs:
  run-tests:
    runs-on: ubuntu-18.04

https://pastebin.com/PrqYievL

Error

name: Tests
 
on: [push]
 
jobs:
  run-tests:
    runs-on: ubuntu-18.04

https://pastebin.com/H324B51Q

Problem solved by fixing Python script

import time
from selenium import webdriver
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities

https://pastebin.com/ATaSgUZp

question from:https://stackoverflow.com/questions/65829278/session-timed-out-or-not-found-while-executing-test-in-selenoid-using-github-act

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...