Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mob.open sometimes gets stuck unless user manually taps somehwere on the screen #19

Open
romovs opened this issue Oct 13, 2019 · 0 comments
Labels

Comments

@romovs
Copy link
Member

romovs commented Oct 13, 2019

When running a mobile web test sometimes get webdriver socket hang up and oxygen still stuck on mob.open - can last for over an hour.

var caps = 
{
"platformName": "Android",
"platformVersion": "9",
"deviceName": "3491360b9805",
"browserName" :"chrome",
"automationName": "UIAutomator2"
}
mob.init(caps);

mob.pause(3000);

mob.setWebViewContext();

///mob.pause(3000);

mob.open('https://www.wikipedia.org/');
//mob.selectWindow('title=Wikipedia');
//               id: id=searchInput
//             name: name=search
// xpath:attributes: //input[@id=\'searchInput\']
// xpath:idRelative: //div[@id=\'search-input\']/input
//   xpath osition: //div/input
//              css: css=#searchInput
mob.click('id=searchInput');
//               id: id=searchInput
//             name: name=search
// xpath:attributes: //input[@id=\'searchInput\']
// xpath:idRelative: //div[@id=\'search-input\']/input
//   xpath osition: //div/input
//              css: css=#searchInput
mob.type('id=searchInput', 'Hello world');
// xpath:attributes: //button[@type=\'submit\']
// xpath:idRelative: //form[@id=\'search-form\']/fieldset/button
//   xpath osition: //fieldset/button
//              css: css=button.pure-button.pure-button-primary-progressive
mob.click('//button[@type=\'submit\']');
//mob.selectWindow('title="Hello, World!" program - Wikipedia');
//               id: id=firstHeading
// xpath:attributes: //h1[@id=\'firstHeading\']
// xpath:idRelative: //div[@id=\'content\']/h1
//   xpath osition: //h1
//              css: css=#firstHeading
return;
mob.assertText('id=firstHeading', '"Hello, World!" program');
//               id: id=firstHeading
// xpath:attributes: //h1[@id=\'firstHeading\']
// xpath:idRelative: //div[@id=\'content\']/h1
//   xpath osition: //h1
//              css: css=#firstHeading
mob.waitForExist('id=firstHeading');
@romovs romovs added the bug label Oct 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant