To select 2 options I do the following. And also click. But the values
in my QWebView are not changing based on this. Please help whats wrong
going on.

     QWebElement selectBox =

 m_WebView->page()->mainFrame()->findFirstElement("select[id=gameid]");

    selectBox.setAttribute("value", "187");

    QWebElement selectBox2 =

 m_WebView->page()->mainFrame()->findFirstElement("select[id=hostid]");

    selectBox2.setAttribute("value", "24351");


    QWebElement button =
m_WebView->page()->mainFrame()->documentElement().findFirst("input[type=button]");
    button.evaluateJavaScript("this.click()");

-- 
Thanks & Regards
Sujan
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to