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

Using web locator when calling the web browser manually, using TagUI with Firefox #344

Closed
LZF07 opened this issue Feb 20, 2019 · 7 comments
Labels

Comments

@LZF07
Copy link

LZF07 commented Feb 20, 2019

I'm having trouble using slimerjs with firefox, with this I'm calling firefox manually.
If I open the browser without using the chrome or firefox commands can I reference their web fields?
The way i call the web browser:
vision type(Key.WIN)
type page.png as firefox[enter]

The trouble with slimerjs is
"SLIMERJSLAUNCHER is set to C:\PROGRAM FILES\MOZILLA FIREFOX\firefox.exe"
[GFX1]: Potential driver version mismatch ignored due to missing DLLs igd10umd64 v= and igd10iumd64 v=

@LZF07
Copy link
Author

LZF07 commented Feb 20, 2019

Used the xpath copy and the result was:
//*[@id="login_field"]

i used but doesn't worked
enter //*[@id="txt_user_login"] as 1234

When i call like this works.
http://site
enter //[@id="txt_user_login"] as 1234
enter //
[@id="pwd_user_password"] as 1234[enter]

Thank you

@LZF07
Copy link
Author

LZF07 commented Feb 20, 2019

the website I want to access does not work well with google chrome, if there is any way to use firefox or internet explorer it will make it easier

@kensoh kensoh changed the title Problem using web location when call the web browser manually Using web locator when calling the web browser manually Feb 21, 2019
@kensoh
Copy link
Member

kensoh commented Feb 21, 2019

Thanks for raising this, since Firefox v60, due to the architecture overhaul, SlimerJS (which TagUI uses to control Firefox) has not been able to support Firefox browser. Details here - laurentj/slimerjs#694

An alternative I can think of is running in the default PhantomJS mode (without chrome or headless or firefox option). You can use the live step to try debugging and building your script even though you can't see the browser.

Alternatively, try using the visual automation method through Sikuli, and treat it as if you automating the browse like a desktop app. In this, case the webpage DOM would not be accessible to TagUI and thus you can't reference elements using locators. Images of elements are used instead to reference them. Details here - https://github.com/kelaberetiv/TagUI#visual-automation

@kensoh kensoh added the query label Feb 21, 2019
@kensoh
Copy link
Member

kensoh commented Feb 21, 2019

Oh, of course, if really want to use Firefox, another option is try downloading and using an older version of Firefox, eg v59 - https://ftp.mozilla.org/pub/firefox/releases/59.0/

@kensoh kensoh changed the title Using web locator when calling the web browser manually Using web locator when calling the web browser manually, using TagUI with Firefox Feb 21, 2019
@LZF07
Copy link
Author

LZF07 commented Feb 21, 2019

Already tried to use firefox v54 but doesn't worked.
My system works better with IE, and if we could work with web locator on IE would be perfect.
There´s any way to use with internet explorer?

Thank you for the support!

@kensoh
Copy link
Member

kensoh commented Feb 21, 2019

I see, I guess that website works for IE as you suggested. I'm afraid TagUI doesn't automate IE directly. You can try the above suggestion on visual automation or PhantomJS mode.

If that doesn't work, can explore other automation solutions such as open-source Selenium, or even commercial ones like UiPath. Those tools have spent big engineering efforts to automate IE.

@LZF07
Copy link
Author

LZF07 commented Feb 21, 2019

I´m actually using visual automation and will try Selenium in the future.
nice job with TAG UI and thank you, Kensoh!

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

2 participants