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

Testing a browser URL opened from a Windows Application #61

Open
karthikyeskay opened this issue Feb 27, 2016 · 2 comments
Open

Testing a browser URL opened from a Windows Application #61

karthikyeskay opened this issue Feb 27, 2016 · 2 comments
Labels

Comments

@karthikyeskay
Copy link

So far i have tested my windows application through winium and now i have a scenario where i need to validate the URL which was opened on a browser from a button on windows application.

Is this currently possible to pass control from Win application to the launched browser using Winium?

Even if not, is there any other work around? Even if i can get just the URL i will open other instance of Selenium webdriver with that URL.

@skyline-gleb
Copy link
Contributor

Hi. Sorry for long answer.
Browser's url field accessible from Winium. Use UISpy for get fields locator.

@AnandNSM
Copy link

AnandNSM commented May 2, 2017

Try this 1,(Work around) - Working stable for me

  1. Lauch window application.
  2. Validate few fields in application.
  3. Click on (any) link/button which starts a browser.
  4. Switch to browser Get(Copy) the URL of the opened browser by Robot class.(browser window will be on top of ur win application immediately after buton click, press F6(robot class) and press ctrl+c.
  5. Close the browser.( Press ALT+F4(robot class)
  6. Initiate a new web driver.
  7. Paste the URL and click enter using Robot class.(press f6 and press ctrl+v and press enter key)
  8. Validate the any field and pass data.(ur web validation)
  9. close the webdriver.
  10. switch back to window driver.
  11. validate window menus.
  12. close the windriver

Note : You have to keep both winium and chrome/firefox/IE drivers opened while running this test.

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

3 participants