Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to skip Chrome Welcome screen, every time I run Appium, Ruby test

I'm new to Appium. So my requirement is to run web driver test through Appium in simulator but when I run every time chrome always shows the welcome screen which I have to manually skip to see the test result and take screen shots. How to skip the chrome welcome screen?

Below is my settings Appium 1.5.3 Mobile platform/version under test: Android 7.1 Real device or emulator/simulator: Emulator

This is what I have in my env.rb file

begin
  system 'adb uninstall io.appium.settings'
  system 'adb uninstall io.appium.unlock'
  $driver = Appium::Driver.new(desired_caps).start_driver
rescue Exception => e
  puts e.message
  Process.exit(0)  
 end
else # else create driver instance for desktop browser
 begin
   $driver = Selenium::WebDriver.for(:"#{$browser_type}")
   $driver.manage().window().maximize()
 rescue Exception => e
   puts e.message
   Process.exit(0)
 end
end
like image 229
Ram Avatar asked Nov 27 '22 03:11

Ram


1 Answers

Enable USB debugging in "Developer options". This is strange but it works. Refer below url for more details https://github.com/appium/appium/issues/6618

like image 66
Durga_Prasad_Patro Avatar answered Nov 28 '22 16:11

Durga_Prasad_Patro