Ask a Question

Javafx webview controls

TestQA1
Frequent Contributor

Javafx webview controls

Hi,

 

Our developer has implemented a username and password fields into javafx webview. I have enabled all available controls in my project properties but I am not able to get access to the fields inside webview.

 

Any help would be really appreciated.

 

Thanks

TestQA

13 REPLIES 13
TestQA1
Frequent Contributor

great thanks very much, I will give it a go. I was missing to use getDocument which I realized after I posted here.

 

 

TestQA1
Frequent Contributor

Great thanks very much. I will give it a go. I was missing to add getDocument to access html page.

 

TestQA1
Frequent Contributor

Looks like I'm getting too overwhelmed with this issue 🙂 I did use getDocument() if you check my previous replies where I have shared the code. I think the problem is with the selector 'id' , not sure why. Can you check the html code I shared and help me identify if I am using the correct id. Also, if I can use xpath instead as I know exactly what the xpath is.

 

Thanks

Hi,

 

I noted in @rraghvani 's code that he used getElementsByName() (note bolded 's') to find single element by name.

Maybe you should use getElementsById() instead of getElementById() ?

As it was mentioned in some reply in the initial threads provided by @Marsha_R, try to check the documentation as for what methods are provided by the getDocument() FX object.

 

Regards,
  /Alex [Community Champion]
____
[Community Champions] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Champions]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Champion] signature is assigned on quarterly basis and is used with permission by SmartBear Software.
https://community.smartbear.com/t5/Community-Champions/About-the-Community-Champions-Program/gpm-p/252662
================================
cancel
Showing results for 
Search instead for 
Did you mean: