Nasıl Selenyum RC ile Google Chrome çalıştırmak için?
Selenyum RC Nunit asp.net siteme test etmeye çalışıyorum.
Benim testleri Firefox,Safari,opera,IE 8, google chrome değil, ben de işe gidebilirim. Bu tarayıcı arugment için koydum
selenium = new DefaultSelenium(Server, ServerPort,
"*chrome", DomainURL);
Bu her zaman en iyi chrome değil Firefox yükler.
CEVAP
Eğer yanlış hatırlamıyorsam"*chrome
" Firefox . özel bir modunu başlatmak için kullanılır (hangi uygulama daha privilegies daha az güvenlik kısıtlamaları ile bir mod); yani, başlatılan Firefox olması ve Google Chrome değil, normal.
Eğer Google Krom başlatmak istiyorsanız, başka bir şey daha kullanmak zorunda olacak "*chrome
".
Etkileşimli mod, bunun gibi bir şey ile Selenyum RC kullanarak :
$ java -jar selenium-server.jar -interactive
ve kullanma getNewBrowserSession
komutu doğru :
cmd=getNewBrowserSession
Tarayıcıların listesini destekler olduğunu anladım :
23:43:09.317 INFO - Got result: Failed to start new browser session: Browser not supported:
(Did you forget to add a *?)
Supported browsers include:
*firefox
*mock
*firefoxproxy
*pifirefox
*chrome
*iexploreproxy
*iexplore
*firefox3
*safariproxy
*googlechrome
*konqueror
*firefox2
*safari
*piiexplore
*firefoxchrome
*opera
*iehta
*custom
on session null
Yani, tahmin ediyorumGoogle Chrome kullanarak başlatmak gerekir "*googlechrome
""*chrome
". yerine
Değilim Windows, bu yüzden yapamam deneyin tek başıma... Ve bulamıyorum hiçbir şey belgelerinde beni... Yine de, biraz şans, bu yardımcı olabilir
Her neyse, iyi eğlenceler !
Bir not olarak : Google Chrome "terimini Chrome Mozilla User Interface Chrome. plenty of things, demek, aslında, krom icat eden kişi değildir
Nasıl Google Chrome JavaScript kalıcı ...
Nasıl Google Chrome Otomatik Doldurma ...
Nasıl Google Chrome satır içi Javascri...
Nasıl çok amaçlı Adres çubuğu arama si...
Nasıl Google Chrome tek bir adımda tüm...