A new diffusive gradients in a thin film (DGT) technique, using a titanium dioxide based adsorbent (Metsorb), has been developed and evaluated for the determination of dissolved inorganic arsenic and selenium. As(III), As(V), and Se(IV) were found to be quantitatively accumulated by the adsorbent (uptake efficiencies of 96.5-100%) and eluted in 1 M NaOH (elution efficiencies of 81.2%, 75.2%, and 88.7%). Se(VI) was not quantitatively accumulated by the adsorbent (<20%). Laboratory DGT validation experiments gave linear mass uptake over time (R(2) >or= 0.998) for As(III), As(V), and Se(IV). Consistent uptake occurred over pH (3.5-8.5) and ionic strength (0.0001-0.75 mol L(-1) NaNO(3)) ranges typical of natural waters, including seawater. Field deployments of DGT probes with various diffusive layer thicknesses confirmed the use of the technique in situ, allowing calculation of the diffusive boundary layers and an accurate measurement of inorganic arsenic. Reproducibility of the technique in field deployments was good (relative standard deviation <8%). Limits of detection (4 day deployments) were 0.01 microg L(-1) for inorganic arsenic and 0.05 microg L(-1) for Se(IV). The results of this study confirmed that DGT with Metsorb was a reliable and robust method for the measurement of inorganic arsenic and the selective measurement of Se(IV) within useful limits of accuracy.