File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
backend/apps/datasource/api Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ async def export(session: SessionDep):
3030 driver = webdriver .Chrome (service = service , options = options ) # 或者使用webdriver.Firefox()等
3131 print ('init done' )
3232 # 打开网页
33- driver .get ('https://g2.antv.antgroup.com/examples/general/interval/#bar-basic ' )
33+ driver .get ('https://g2.antv.antgroup.com/examples/general/pie/#pie-base ' )
3434 driver .set_window_size (width = 1920 , height = 1080 )
3535
3636 # 等待页面加载完成(根据需要调整时间)
@@ -39,7 +39,6 @@ async def export(session: SessionDep):
3939 # 等待直到某个元素加载完成,例如某个具体的元素或者某个时间(例如10秒)
4040 print ("started driver" )
4141 WebDriverWait (driver , 10 ).until (EC .presence_of_element_located ((By .TAG_NAME , "canvas" )))
42- time .sleep (2 )
4342 except :
4443 print ("Timeout" )
4544
You can’t perform that action at this time.
0 commit comments